From 2a9f7e44ce1b73d3d56ef83f83e94f074ecac3f9 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Fri, 06 Apr 2018 17:34:38 +0000
Subject: [PATCH] Added automatic AVX support - speedup +20% on CPU x86_64 Intel Skylake

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

diff --git a/src/demo.c b/src/demo.c
index 3b4e92d..6ae3c33 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -148,7 +148,7 @@
         load_weights(&net, weightfile);
     }
     set_batch_network(&net, 1);
-
+	fuse_conv_batchnorm(net);
     srand(2222222);
 
     if(filename){
@@ -313,7 +313,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