From b36512ea2e7e6d2ec36a3241c1bf751e4e074fe1 Mon Sep 17 00:00:00 2001
From: vinjn <vinjn.z@gmail.com>
Date: Sat, 26 May 2018 13:42:53 +0000
Subject: [PATCH] classifier.c - add the awesome training chart and make sure "top" is not bigger than "classes" in datacfg file.

---
 src/option_list.h |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/src/option_list.h b/src/option_list.h
index 0270465..29ac943 100644
--- a/src/option_list.h
+++ b/src/option_list.h
@@ -2,11 +2,43 @@
 #define OPTION_LIST_H
 #include "list.h"
 
+#ifdef YOLODLL_EXPORTS
+#if defined(_MSC_VER)
+#define YOLODLL_API __declspec(dllexport) 
+#else
+#define YOLODLL_API __attribute__((visibility("default")))
+#endif
+#else
+#if defined(_MSC_VER)
+#define YOLODLL_API
+#else
+#define YOLODLL_API
+#endif
+#endif
+
+typedef struct{
+    char *key;
+    char *val;
+    int used;
+} kvp;
+
+
+list *read_data_cfg(char *filename);
+int read_option(char *s, list *options);
 void option_insert(list *l, char *key, char *val);
 char *option_find(list *l, char *key);
 char *option_find_str(list *l, char *key, char *def);
 int option_find_int(list *l, char *key, int def);
-double option_find_double(list *l, char *key, double def);
+int option_find_int_quiet(list *l, char *key, int def);
+float option_find_float(list *l, char *key, float def);
+float option_find_float_quiet(list *l, char *key, float def);
 void option_unused(list *l);
 
+typedef struct {
+	int classes;
+	char **names;
+} metadata;
+
+YOLODLL_API metadata get_metadata(char *file);
+
 #endif

--
Gitblit v1.10.0