From b34f0c9870a9ce8ed3e9fe938be89e4ac468bfe3 Mon Sep 17 00:00:00 2001 From: Naymul Islam Date: Fri, 19 May 2023 21:09:34 +0600 Subject: [PATCH] Pass byte objects as arguments instead of strings converted the string arguments to byte objects using the b prefix --- python/darknet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)