AlexeyAB / darknet

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

mAP by Darknet and mAP by Cartucho are different on detection same validation images. #7332

Open HanTnx opened 3 years ago

HanTnx commented 3 years ago

Let's me explain shortly what I have done. Firstly, I trained my custom dataset on Darknet Ubuntu 18.04, the best weigtht on 840 validation images is mAP 87%. Secondly, I use this 87% best weight on OpenCV DNN Python code to detect the same 840 images and used the detection results to calculate mAP with Cartucho source code. But these two mAP are very different, you can see in include image mAP_curto

image Can you explain or correct what I have done wrongly ? Thank you for your time and consideration

AlexeyAB commented 3 years ago
HanTnx commented 3 years ago

To answer to your question

poornimajd commented 3 years ago

@HanTnx were you able to solve this difference in map issue?

matt-sharp commented 3 years ago

@HanTnx I'm also curious to know if you found a solution to get a better match between Darknet and Open-CV dnn results.