AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.76k stars 7.96k forks source link

valid have no results #5412

Open beizhengren opened 4 years ago

beizhengren commented 4 years ago

Hi @AlexeyAB , when I validate with my test set,

./darknet detector valid cfg/my-voc.data cfg/my-yolov4.cfg my-yolov4.weights

after run above, I got some text file in results folder, but without contents in them. And, I have not got the json file, as

Rename the file /results/coco_results.json to detections_test-dev2017_yolov4_results.json and compress it to detections_test-dev2017_yolov4_results.zip with the same procedure, I make a validation with yolov3 sucessfully. Thanks!

AlexeyAB commented 4 years ago

File /results/coco_results.json will be created for MS COCO dataset only. not for Pascal VOC cfg/my-voc.data and not for your custom dataset.

Use all default files without your changes and strictly follow this manual https://github.com/AlexeyAB/darknet/wiki#training-and-evaluation-of-speed-and-accuracy-on-ms-coco

beizhengren commented 4 years ago

@AlexeyAB I till try it. Thanks!

nistarlwc commented 4 years ago

@AlexeyAB I validate with coco val set, but "image_id" are 0, in file /results/coco_results.json

{"image_id":0, "category_id":81, "bbox":[0.000000, 49.523914, 18.663914, 63.693478], "score":0.002123}, {"image_id":0, "category_id":89, "bbox":[0.000000, 49.523914, 18.663914, 63.693478], "score":0.001642}, {"image_id":0, "category_id":44, "bbox":[474.524872, 292.643555, 15.269592, 15.517822], "score":0.001430}, {"image_id":0, "category_id":48, "bbox":[474.524872, 292.643555, 15.269592, 15.517822], "score":0.002594}, {"image_id":0, "category_id":49, "bbox":[474.524872, 292.643555, 15.269592, 15.517822], "score":0.003841},

AlexeyAB commented 4 years ago

Did you download http://images.cocodataset.org/zips/val2017.zip ?

nistarlwc commented 4 years ago

I know what is the problem. in val2014, image's name is COCO_val2014_XXX.jpg, but name of val2017 is XXX.jpg

faezemm7474 commented 3 years ago

@AlexeyAB I till try it. Thanks!

sorry, did you solve your problem?