Skip to content

Commit

Permalink
OK GOD DAMN IT I THINK IT'S RIGHT NOW WHATEVER
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreddie committed Aug 3, 2017
1 parent 8327154 commit 1e72980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import darknet as dn

net = dn.load_net("cfg/tiny-yolo.cfg", "tiny-yolo.backup", 0)
net = dn.load_net("cfg/tiny-yolo.cfg", "tiny-yolo.weights", 0)
meta = dn.load_meta("cfg/coco.data")
r = dn.detect(net, meta, "data/dog.jpg")
print r
Expand Down
2 changes: 1 addition & 1 deletion python/darknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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.backup", 0)
net = load_net("cfg/tiny-yolo.cfg", "tiny-yolo.weights", 0)
meta = load_meta("cfg/coco.data")
r = detect(net, meta, "data/dog.jpg")
print r
Expand Down

0 comments on commit 1e72980

Please sign in to comment.