From 2ce6460c79e06caa33eab3991ee3e7fd9f0909d6 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 10 Apr 2018 18:08:24 +0000
Subject: [PATCH] Remove truth only if smaller than 1x1 pix during training

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

diff --git a/src/demo.c b/src/demo.c
index 3b4e92d..027ca4d 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -24,6 +24,7 @@
 #ifndef CV_VERSION_EPOCH
 #include "opencv2/videoio/videoio_c.h"
 #endif
+#include "http_stream.h"
 image get_image_from_stream(CvCapture *cap);
 
 static char **demo_names;
@@ -148,7 +149,7 @@
         load_weights(&net, weightfile);
     }
     set_batch_network(&net, 1);
-
+	fuse_conv_batchnorm(net);
     srand(2222222);
 
     if(filename){
@@ -313,7 +314,8 @@
 	}
 }
 #else
-void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix, char *out_filename, int http_stream_port, int dont_show)
+void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes,
+	int frame_skip, char *prefix, char *out_filename, int http_stream_port, int dont_show)
 {
     fprintf(stderr, "Demo needs OpenCV for webcam images.\n");
 }

--
Gitblit v1.10.0