From 1aadf29a51fcc985f46cee4f9c7bc23c44507834 Mon Sep 17 00:00:00 2001
From: Philip Kahn <tigerhawkvok@gmail.com>
Date: Fri, 04 May 2018 22:00:25 +0000
Subject: [PATCH] fix detection paths
---
build/darknet/x64/darknet.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/build/darknet/x64/darknet.py b/build/darknet/x64/darknet.py
index e13929f..f8c6401 100644
--- a/build/darknet/x64/darknet.py
+++ b/build/darknet/x64/darknet.py
@@ -103,8 +103,8 @@
raise ValueError("ForceCPU")
except NameError:
pass
- # print(os.environ.keys())
- print("FORCE_CPU flag undefined, proceeding with GPU")
+ #print(os.environ.keys())
+ #print("FORCE_CPU flag undefined, proceeding with GPU")
if not os.path.exists(winGPUdll):
raise ValueError("NoDLL")
lib = CDLL(winGPUdll, RTLD_GLOBAL)
@@ -253,7 +253,7 @@
metaMain = None
altNames = None
-def performDetect(imagePath="data/dog.jpg", thresh= 0.25, configPath = "./yolov3.cfg", weightPath = "yolov3.weights", metaPath= "./data/coco.data", showImage= True, makeImageOnly = False, initOnly= False):
+def performDetect(imagePath="data/dog.jpg", thresh= 0.25, configPath = "./cfg/yolov3.cfg", weightPath = "yolov3.weights", metaPath= "./data/coco.data", showImage= True, makeImageOnly = False, initOnly= False):
"""
Convenience function to handle the detection and returns of objects.
--
Gitblit v1.10.0