mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
OK GOD DAMN IT I THINK IT'S RIGHT NOW WHATEVER
This commit is contained in:
parent
8327154a67
commit
1e729804f6
@ -8,7 +8,7 @@ sys.path.append(os.path.join(os.getcwd(),'python/'))
|
||||
|
||||
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
|
||||
|
@ -119,7 +119,7 @@ if __name__ == "__main__":
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user