-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mAP #1
Comments
Yes, I got the same result. You can make a pull request for me to fix the bug. |
Not yet, but I found an issue in darkflow, it seems the transfer to tensorflow also cause some difference. https://github.com/thtrieu/darkflow/issues/25 |
I implemented the loss function following the darknet and the training process is work now. |
@longcw Thank you for sharing code. I have tested the converted darknet model, which got ~72 mAP. Then I trained VOC07 trainval set for 160 epoch (totally use your github codes), which only got ~50 mAP. Did you successfully train the yolo2 detector? |
Thank you for your comment. |
For test phase, there are two parameters inconsistent with the original darknet:
As @ruinmessi , before correcting those parameters, the mAP in VOC2007-test is 71.9. Correction of first parameter improves slightly to 72.2, and correction the |
@ruinmessi What error in test code have you fixed? |
@longcw @crazylyf Sorry for leaving a long time. I boost the mAP to 74.3 by changing the nms order like this while this project do the nms in a function called postprocess. with the exact parameters you mentioned. |
Why your mAP is 0.7 higher if we are using the same parameters? Am I missing something? |
The nms should implement before thresh holding. |
@ruinmessi Thank you for pointing out this problem. |
@longcw I am curious about how to convert the original weights to h5 file, could you please show me some details or scripts? |
@ruinmessi I use darkflow to load original weights from the binary weights file. |
Is there any update on the training issue? |
@ruinmessi Does the order of NMS and thresh holding affect the results? I don't think so..Can anyone prove I am wrong? |
Perhaps the weights of the convolutional layers needs to be held fixed while training on the VOC datasets? |
In darknet19_448.cfg from the darknet project, batch size is 128, not 16 as it is in the config files here. Unfortunately I do not have the resources to test with a full batch size of 128. With 16 though I can confirm that I only get ~50 mAP. Can someone else try to confirm whether or not changing the batch size makes a difference? It's the only parameter I can find that differs between the two projects. |
I slightly change this code (following original YOLO training procedure), and train 160 epoch on VOC07+12, test on VOC07-test, evaluated mAP with 416 x 416 resolution 0.7221, batch size 64 (directly test by using the weight provided by @longcw (yolo-voc.weights.h5) Revise this code seems necessary if you want to train with such large batch size (64) I think there is still something mismatched, so mAP drops largely. |
I have implemented YOLOv2 in tensorflow. But I can achieve an mAP of about only 0.60 on VOC07-test (train with VOC07+12 train+val), with all the tricks except "hi-res detector" in Table 2 in the paper implemented. @cory8249 Could you kindly share your code which achieves 0.768 mAP? |
@JesseYang Sorry to let you misunderstand, 0.768 mAP is not trained by me. I just mention it as reference. |
@cory8249 I see. Thanks! |
I fix the IoU bug, and train on VOC0712 trainval. |
@cory8249 Have you fixed another issue when you got the 0.6825 mAP? |
@JesseYang I think I've fix these exp() sig() bug in my experiment. |
I also found something interesting: Does anyone have this same problem ? |
I've trained a model with mAP = 0.71 by fixing bug in #23 |
Does anyone try to train yolov1 on pascal voc(2007+2012 trainval) and surpass mAP by 60% on 2007 test? |
After modified the code mentioned here, my mAP goes to 72.1% with 416*416 input. |
@xuzijian what mAP do you get with VOC(2007 trainval) after the changes? |
@kk1153 I haven't trained models with only VOC07 dataset |
@cory8249 @xuzijian @JesseYang, I use the latest master code on 07+12trainval of batchsize=32 on pytorch 0.4, and got the mAP=0.663. But when I test the yolo-voc.weights.h5, the mAP=0.677, which is much worse than the mAP=0.722 mentioned above. Did I miss something ? |
@Liu0329 me too |
Have you ever evaluate the transformed trained model in VOC2007? I've tried your code and got a 71.9 mAP while the original is 76.8. Then I found a tiny error in test code, after fixing the result up to 72.8 mAP, still not enough...
The text was updated successfully, but these errors were encountered: