From 3a2a8653a69e2735e3da9c3d63fe830af2614f36 Mon Sep 17 00:00:00 2001
From: Philip Kahn <tigerhawkvok@gmail.com>
Date: Fri, 04 May 2018 21:59:29 +0000
Subject: [PATCH] Fix detection paths
---
darknet.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/darknet.py b/darknet.py
index e13929f..f8c6401 100644
--- a/darknet.py
+++ b/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