From 9f2dbfa7df981d41c070261c4b9a8a875b290203 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 17 Apr 2018 11:39:27 +0000
Subject: [PATCH] Added flag AVX to the Makefile
---
src/detector.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/detector.c b/src/detector.c
index e4687be..13fb5b4 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -99,7 +99,7 @@
args.hue = net.hue;
#ifdef OPENCV
- args.threads = 7;
+ args.threads = 3;
IplImage* img = NULL;
float max_img_loss = 5;
int number_of_lines = 100;
@@ -1056,8 +1056,8 @@
float *X = sized.data;
time= what_time_is_it_now();
- network_predict(net, X);
- //network_predict_image(&net, im);
+ //network_predict(net, X);
+ network_predict_image(&net, im); letterbox = 1;
printf("%s: Predicted in %f seconds.\n", input, (what_time_is_it_now()-time));
//get_region_boxes(l, 1, 1, thresh, probs, boxes, 0, 0);
// if (nms) do_nms_sort_v2(boxes, probs, l.w*l.h*l.n, l.classes, nms);
--
Gitblit v1.10.0