Darknet: Could't open YOLOv3 custom trained file

Created on 15 Mar 2019  路  10Comments  路  Source: AlexeyAB/darknet

I've done training YOLO v3 of my own dataset(9000 images of 3 different classes). But when i try to run the detection, this error appeared. Any suggestion?
testing error

Most helpful comment

darknet.exe detector demo data/obj.data yolo-obj.cfg backup/yolo-obj_last.weights 0

Correct command is
darknet.exe detector demo data/obj.data yolo-obj.cfg backup/yolo-obj_last.weights -c 0

General structure of commands are
darknet.exe <function1> <function2> <data path> <cfg path> <weights path> <rest of things (image, camera,-show etc)>

All 10 comments

@amar-mustaqim
What command did you enter ?

It looks like the weights' path is wrong.

darknet.exe detector test data/obj.data yolo-obj.cfg yolo-obj_last.weights. I stop the training after 6000 iterations.

U need an image path after that
darknet.exe detector test data/obj.data yolo-obj.cfg yolo-obj_last.weights image.jpg

check yolo-obj_last.weights path
try with yolo-obj_6000.weights path

Actually both yolo-obj_last.weights and yolo-obj_6000.weights are at the same path which is in x64/backup. I understand about the image path, but what if I want to run the detection through the webcam?

darknet.exe detector demo data/obj.data yolo-obj.cfg x64/backup/yolo-obj_last.weights 0

for webcam it's demo command and you need opencv compiled
You have to enter the exact path for .data .cfg .weights files
0 is for webcam

Thank you so much for your help mate! Will figure it out 馃槃

I try to run this command:

darknet.exe detector demo data/obj.data yolo-obj.cfg backup/yolo-obj_last.weights 0

and this error appear.
webcam detection stream close

darknet.exe detector demo data/obj.data yolo-obj.cfg backup/yolo-obj_last.weights 0

Correct command is
darknet.exe detector demo data/obj.data yolo-obj.cfg backup/yolo-obj_last.weights -c 0

General structure of commands are
darknet.exe <function1> <function2> <data path> <cfg path> <weights path> <rest of things (image, camera,-show etc)>

Thank you so much! It works!

@amar-mustaqim Read more: https://github.com/AlexeyAB/darknet#how-to-use-on-the-command-line

Was this page helpful?
0 / 5 - 0 ratings