Skip to content
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

Pretrained model does not seem to give good detection_eval #1

Closed
revilokeb opened this issue Mar 11, 2018 · 11 comments
Closed

Pretrained model does not seem to give good detection_eval #1

revilokeb opened this issue Mar 11, 2018 · 11 comments

Comments

@revilokeb
Copy link

First of all many thanks for providing the code, greatly appreciated!!

I have run your evaluation code on your pre-trained model, i.e.

python examples/pelee/eval_voc.py --weights=models/pelee/peleenet_inet_acc7243.caffemodel

which is giving to my surprise a loss value of loss=29.92 and detection_eval = 0.002 on the Pascal VOC validation data.

I have then retrained the model for 120,000 iterations and I am obtaining a loss value of loss=1.81 and detection_eval = 0.705, so fairly close to what you have published.

Would you maybe so kind to look once more at the pre-trained model at https://drive.google.com/file/d/1OBzEnD5VEB_q_B8YkLx-i3PMHVO-wagk/view?usp=sharing? Does that model give you good validation?

@Robert-JunWang
Copy link
Owner

The model of peleenet_inet_acc7243.caffemodel is trained on imageNet ILSVRC 2012 and is used to initialize the weights of the object detection model. To run eval_voc.py, you should download the pre-trained model from the link of "07+12" or "07+12+coco".

@hengck23
Copy link

I am trying use pelee-net for the COCO detection task. Mobilenet reported about 20 to 21% mAP for 81 classes.

@Robert-JunWang
There is a "train_coco.py" file, can i use that without modification? (I started training and it seems to work). Also do you have coco detection results or model?

@revilokeb
Can you share your retained model and logfile (value of loss=1.81 and detection_eval = 0.705)? This would be good reference for my training.

Thanks all!

@Robert-JunWang
Copy link
Owner

Robert-JunWang commented Mar 19, 2018 via email

@hengck23
Copy link

@Robert-JunWang
Thanks for the information. After I finished my training, i will report on my results.

If you want, I can help you to finetune your current model on coco. Any prototxt, log or trained weights will be useful for me.

Thanks for your great work!

@revilokeb
Copy link
Author

@Robert-JunWang I see, so I understand the the actual model trained on Pascal VOC is available at the specified link, I will try this out later, many thanks!
@hengck23 yes I could provide you with my training on Pascal VOC but the original model is giving even slightly better results, why not taking that one?

@chienyiwang
Copy link

Hi @Robert-JunWang,
Thank you for your contribution. I tried to use the VOC / VOC+COCO model for evaluation, but I found out that you might provided the wrong download link for those model files (the links are the same as the ImageNet pretrained one). Could you please check it and provide the correct one? Thanks a lot!

@Robert-JunWang
Copy link
Owner

Robert-JunWang commented Mar 23, 2018 via email

@chienyiwang
Copy link

Hi @Robert-JunWang,
Thank you for your update!
I just tried to test some images using your trained model on VOC by a testing script similar to https://github.com/weiliu89/caffe/blob/ssd/examples/ssd_detect.ipynb
(I replaced the model_def and model_weights in the example)
However, it is getting very bad result on most of the images, even on VOC training dataset. Could you please double check the model or provide the script which you used for testing one single image? Thank you!

@Robert-JunWang
Copy link
Owner

Robert-JunWang commented Mar 24, 2018 via email

@chienyiwang
Copy link

Hi @Robert-JunWang ,
Thanks for the reply. The problem was caused by the scale factor (0.017). Now the result seems pretty good!
Would you mind to mention a bit about your reason to scale the image by 0.017? Thanks!

@Robert-JunWang
Copy link
Owner

Robert-JunWang commented Mar 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants