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

Tune with scaled batch size #26

Closed
wangdaha1 opened this issue Dec 21, 2022 · 2 comments
Closed

Tune with scaled batch size #26

wangdaha1 opened this issue Dec 21, 2022 · 2 comments

Comments

@wangdaha1
Copy link

wangdaha1 commented Dec 21, 2022

Hi Dr. Jia,

I noticed that in tune_fgvc/tune_vtab.py, the learning rate is scaled as 【lr = lr / 256 * cfg.DATA.BATCH_SIZE】for choosing the best learning rate while in train.py, this operation is not used (lr is kept as [5, 10, 50, etc]). I wonder the reason for doing this. Are the reported results based on the unscaled learning rate? (lr is given in your fgvc excel file)

Best,

@KMnP
Copy link
Owner

KMnP commented Dec 21, 2022

hi, thanks for the question. we use tune*.py for all of our experiments, so we set the scaled lr in the tune_vtab.py file. So the reported results are all based on the scaled learning rate.

train.py does not set the scaling operation since it is only used as a main gate way for training. If you want to use this one directly, please remember to do the scaling manually.

@wangdaha1
Copy link
Author

Thanks for your information! I will close the question.

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

2 participants