Philip Kahn
2018-05-04 3a2a8653a69e2735e3da9c3d63fe830af2614f36
Fix detection paths
1 files modified
4 ■■■■ changed files
darknet.py 4 ●●●● patch | view | raw | blame | history
darknet.py
@@ -104,7 +104,7 @@
            except NameError:
                pass
            # print(os.environ.keys())
            print("FORCE_CPU flag undefined, proceeding with GPU")
            #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.