From c40cdeb4021fc1a638969563972f13c9f5e90d74 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 09 Oct 2015 19:50:43 +0000
Subject: [PATCH] lots of comparator stuff
---
src/coco.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/coco.c b/src/coco.c
index 234f342..f6b135f 100644
--- a/src/coco.c
+++ b/src/coco.c
@@ -135,6 +135,7 @@
}
}
}
+
void get_boxes(float *predictions, int n, int num_boxes, int per_box, box *boxes)
{
int i,j;
@@ -495,14 +496,16 @@
set_batch_network(&net, 1);
srand(2222222);
clock_t time;
- char input[256];
+ char buff[256];
+ char *input = buff;
while(1){
if(filename){
strncpy(input, filename, 256);
} else {
printf("Enter Image Path: ");
fflush(stdout);
- fgets(input, 256, stdin);
+ input = fgets(input, 256, stdin);
+ if(!input) return;
strtok(input, "\n");
}
image im = load_image_color(input,0,0);
--
Gitblit v1.10.0