From 99c92f98e08c007b23b21d2e0887a59f14045efb Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sat, 23 Jun 2018 12:24:48 +0000
Subject: [PATCH] Fixed ability for support OpenCV for yolo_cpp_dll_no_gpu.sln

---
 src/detector.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/detector.c b/src/detector.c
index 2a4c4a2..afb91b2 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -65,6 +65,9 @@
 		printf("\n Error: You set incorrect value batch=1 for Training! You should set batch=64 subdivision=64 \n");
 		getchar();
 	}
+	else if ((net.batch * net.subdivisions) < 64) {
+			printf("\n Warning: You set batch= lower than 64! It is recommended to set batch=64 subdivision=64 \n");
+	}
 
     int imgs = net.batch * net.subdivisions * ngpus;
     printf("Learning Rate: %g, Momentum: %g, Decay: %g\n", net.learning_rate, net.momentum, net.decay);

--
Gitblit v1.10.0