AlexeyAB / darknet

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

IOU and recall calculations by all class id #570

Open tanzenyoyoyo opened 6 years ago

tanzenyoyoyo commented 6 years ago

Hi, I tried to calculate the IoUs and recalls for VOCdevkit/2007_test.txt (not my own dataset). Using detector recall only the best IoUs and recalls are taken and then I can not get recalls and IoUs by all calss id. How can I modify the code of detector recall to get all IoUs and recalls? @AlexeyAB BR

AlexeyAB commented 6 years ago

Hi, try to use detector map, it will give you correct average IoU for the current thresh.

tanzenyoyoyo commented 6 years ago

detector map gives me correct average IoU, but still have no clue to get IoUs and recalls for all the 20 classes.