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

test gap between training and test #30

Open
ZhiweiYan-96 opened this issue Aug 19, 2019 · 3 comments
Open

test gap between training and test #30

ZhiweiYan-96 opened this issue Aug 19, 2019 · 3 comments
Labels
question Further information is requested

Comments

@ZhiweiYan-96
Copy link

ZhiweiYan-96 commented Aug 19, 2019

Hi~
Thanking for your code firstly !

I use the SyncBatch for training SSD, when training I can get 46.81% mAP after 10 epoches finishes. However, when I use the saved model, I only get 36.7% mAP

Here is how I convert model
ssd_student = convert_model(ssd_student) net_student = ssd_student

This is code for saving model
torch.save(net_student.state_dict(), 'weights/' + model_name + '/ssd300_COCO_' + repr(iteration) + '_%.2f.pth' % mAP_student)

When load saved model, I didnt use the convert_model to convert to SyncBN since i think there is no need to convert model when key actually is the same.

I couldn't find where I'm wrong, please give some kind advice, thank you !!

@MJITG
Copy link

MJITG commented Aug 21, 2019

Same question

@vacancy
Copy link
Owner

vacancy commented Aug 21, 2019

I am sorry that I am not currently actively using this tool. Can any of the users provide a minimal script for reproducing the train-test gap results? Appreciate!

@vacancy vacancy added the question Further information is requested label Aug 21, 2019
@phtu-cs
Copy link

phtu-cs commented Nov 10, 2023

Thank you for your code contribution. The same thing happened to me. Maybe there are some bugs in keeping track of batch statistics.

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

No branches or pull requests

4 participants