From 483fdfa951feeb20903da1598cb9d611b93de6ca Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sun, 03 Jun 2018 11:21:15 +0000
Subject: [PATCH] Fix for multi-GPU and DGX

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

diff --git a/src/detector.c b/src/detector.c
index 202fbf9..fc78102 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -106,7 +106,7 @@
     args.hue = net.hue;
 
 #ifdef OPENCV
-	args.threads = 3;
+	args.threads = 3 * ngpus;
 	IplImage* img = NULL;
 	float max_img_loss = 5;
 	int number_of_lines = 100;

--
Gitblit v1.10.0