From a6c51e3b758aee7fd3a6f1d37daa8dcad4891e52 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 08 Mar 2018 22:42:58 +0000
Subject: [PATCH] Fixes for small objects. And fixes of densenet201_yolo.cfg, resnet50_yolo.cfg, resnet152_yolo.cfg

---
 src/data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/data.c b/src/data.c
index ea6313a..6187b34 100644
--- a/src/data.c
+++ b/src/data.c
@@ -326,7 +326,7 @@
         id = boxes[i].id;
 
 		// not detect small objects
-		if ((w < 0.01 || h < 0.01)) continue;
+		if ((w < 0.001 || h < 0.001)) { printf("small w = %f, h = %f \n", w, h); continue; }
 
         truth[i*5+0] = x;
         truth[i*5+1] = y;

--
Gitblit v1.10.0