Darknet: Couldn't open file: data/voc.names

Created on 7 Feb 2018  路  2Comments  路  Source: pjreddie/darknet

yuanshuai@firefly:~/code/darknet-detection-adver/darknet$ ./darknet detector test cfg/voc.data cfg/tiny-yolo-voc.cfg tiny-yolo-voc.weights data/dog.jpg
Couldn't open file: data/voc.names
yuanshuai@firefly:~/code/darknet-detection-adver/darknet$ vim data/voc.names 

yuanshuai@firefly:~/code/darknet-detection-adver/darknet$ ls data/voc.names 
data/voc.names
yuanshuai@firefly:~/code/darknet-detection-adver/darknet$ ls data/voc.names -l
-rw-rw-r-- 1 yuanshuai yuanshuai 155 Jan 15 23:25 data/voc.names

Most helpful comment

@shailaja183 I solved the issue. Please open your voc.data file and give the absolute path of voc.names file. That will solve the issue.

All 2 comments

Just copy the voc.names file in the darknet parent directory (outside the cfg folder) and it worked for me. Note that this is the temporary solution and you need to fix that by changing paths appropriately.

@shailaja183 I solved the issue. Please open your voc.data file and give the absolute path of voc.names file. That will solve the issue.

Was this page helpful?
0 / 5 - 0 ratings