gklz1982 / caffe-yolov2

Other
164 stars 128 forks source link

How do I get mAP? #12

Open skyw opened 6 years ago

skyw commented 6 years ago

The test_yolo_v2.py script doesn't seem to read the ground truth in .xml files and compute mAP.

ByeongHeonYOO commented 6 years ago

There is the part calculating mAP in tools/test_detection.cpp(line 83 computeAP function).

endles commented 6 years ago

Hello, I would like to ask the test_detection.cpp you run out?I have some problem to run test_detection.cpp to compute mAP @ByeongHeonYOO

ByeongHeonYOO commented 6 years ago

@endles Hi, I just executed test_darknet_v3.sh after editing some part(like gpu number and model location). Could you explain what kind of problem did you have? (please forgive my poor English skills..;)

endles commented 6 years ago

@ByeongHeonYOO thank you for your reply,I now know that the problem is in the graphics card driver, but it has not yet been resolved. Another problem I have is that the test_detection.cpp don't has Code of draws the box. Is the measured mAP value still accurate? Did you know that a complete target detection program can measure the mAP value?Thanks again

ByeongHeonYOO commented 6 years ago

@endles In fact, I am also struggling with mAP. I trained yolo-voc model, but its test mAP was too low. So, i'm looking for a solution. And about drawing box , i think that might be possible if you use output of yolo with opencv. (the results of yolo are consists of class, x, y, w, h) in this project.

endles commented 6 years ago

@ByeongHeonYOO thank you for your reply,you said use output of yolo with opencv,Is this part of the code self-written?Is there in this project?

ByeongHeonYOO commented 6 years ago

@endles Sorry for late reply. I think opencv libarary related source code is not in this repository.