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

Change batch size #19

Closed
salehnia opened this issue Dec 4, 2021 · 1 comment
Closed

Change batch size #19

salehnia opened this issue Dec 4, 2021 · 1 comment

Comments

@salehnia
Copy link

salehnia commented Dec 4, 2021

Dear Author,
I changed batch size from 16 to 2 and LR from 0.02 to 0.0025 because i want to run your code on one GPU, so How i should change steps and iteration to have same result? please help me for that.

Thanks

@er-muyue
Copy link
Owner

Taking the 10-shot task as an example, we train our model with 2500 x 16 samples. If you change the batch-size to 2, you only need to ensure that the total number of samples is similar, i.e. ~ 2500x16/2 iterations. Any I suggest the LR-decay step is 2500x16/2*0.8, where 0.8 is just an empirical suggestion (see this code-line).

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