From afe245329bdd14f36ca773fd7d497fc628b0535a Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Wed, 10 Jun 2015 18:14:04 +0000
Subject: [PATCH] Better load messaging
---
src/utils.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/utils.h b/src/utils.h
index e233da8..0db16de 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -4,6 +4,9 @@
#include <time.h>
#include "list.h"
+char *basecfg(char *cfgfile);
+int alphanum_to_int(char c);
+char int_to_alphanum(int i);
void read_all(int fd, char *buffer, size_t bytes);
void write_all(int fd, char *buffer, size_t bytes);
char *find_replace(char *str, char *orig, char *rep);
@@ -23,7 +26,7 @@
void scale_array(float *a, int n, float s);
void translate_array(float *a, int n, float s);
int max_index(float *a, int n);
-float constrain(float a, float max);
+float constrain(float min, float max, float a);
float mse_array(float *a, int n);
float rand_normal();
float rand_uniform();
@@ -33,5 +36,9 @@
float mag_array(float *a, int n);
float **one_hot_encode(float *a, int n, int k);
float sec(clock_t clocks);
+
+typedef struct{
+ float x, y, w, h;
+} box;
#endif
--
Gitblit v1.10.0