Search code examples
machine-learningdarknetyolov4

How to get MAP score of the Yolov4 Model?


I have a set of Images and Yolo Annotation files(in txt format) for the validation.

How to properly use -map argument (something like below) to get the mAP score of the validation dataset using the darknet framework (Repo:https://github.com/AlexeyAB/darknet)?

/darknet detector map cfg/test.data cfg/test_tiny.cfg backup\my_yolov3_tiny_final.weights 

Will it be possible to derive the confusion matrix from this?


Solution

  • /darknet detector map detector map cfg/test.data cfg/test_tiny.cfg backup\my_yolov3_tiny_final.weights where test.data is same data file which you was training on. You can use -map flag when you training so after 4 epochs( 4 * train_size / batch) you will se [email protected].