From b831db5e58ad37c8f4adf39de7fb5db204209a1c Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 10 Jan 2017 16:49:38 +0000
Subject: [PATCH] fixed bug: rand() for batches of images
---
src/detector.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/detector.c b/src/detector.c
index a389407..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;
--
Gitblit v1.10.0