diff --git a/python/darknet.py b/python/darknet.py index b14d24485d8..b9558665276 100644 --- a/python/darknet.py +++ b/python/darknet.py @@ -148,7 +148,7 @@ def detect(net, meta, image, thresh=.5, hier_thresh=.5, nms=.45): #meta = load_meta("cfg/imagenet1k.data") #r = classify(net, meta, im) #print r[:10] - net = load_net("cfg/tiny-yolo.cfg", "tiny-yolo.weights", 0) + net = load_net(b"cfg/tiny-yolo.cfg", b"tiny-yolo.weights", 0) meta = load_meta("cfg/coco.data") r = detect(net, meta, "data/dog.jpg") print(r)