From 351996d9f0390ef44412fa678bc7a073a94e23e5 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 16 Mar 2017 18:49:36 +0000
Subject: [PATCH] Fixed memory leak in DLL, added load_image() & free_image(), added read_names_from_file()
---
src/detector.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/detector.c b/src/detector.c
index 31c44c0..7535df8 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -78,7 +78,7 @@
int count = 0;
//while(i*imgs < N*120){
while(get_current_batch(net) < net.max_batches){
- if(l.random && count++%10 == 0){
+ if(l.random && count++%10 == 0){
printf("Resizing\n");
int dim = (rand() % 10 + 10) * 32;
if (get_current_batch(net)+100 > net.max_batches) dim = 544;
@@ -497,7 +497,7 @@
void run_detector(int argc, char **argv)
{
char *prefix = find_char_arg(argc, argv, "-prefix", 0);
- float thresh = find_float_arg(argc, argv, "-thresh", .25);
+ float thresh = find_float_arg(argc, argv, "-thresh", .24);
int cam_index = find_int_arg(argc, argv, "-c", 0);
int frame_skip = find_int_arg(argc, argv, "-s", 0);
if(argc < 4){
--
Gitblit v1.10.0