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

configs/training.json doesn't work #62

Open
aspnetcs opened this issue Feb 26, 2022 · 6 comments
Open

configs/training.json doesn't work #62

aspnetcs opened this issue Feb 26, 2022 · 6 comments

Comments

@aspnetcs
Copy link

configs/training.json is useless, changing the learning rate in it does not work at all, the learning rate I have been using is CosineAnnealingLR

@LinXueyuanStdio
Copy link
Owner

do you change lr_init? lr_init is the initial learning rate, while CosineAnnealingLR is learning rate scheduler

@aspnetcs
Copy link
Author

aspnetcs commented Mar 1, 2022 via email

@LinXueyuanStdio
Copy link
Owner

please refer to model/utils/lr_schedule.py, which defines object LRSchedule.
Warming-up (lr_warm, end_warm) and decay (start_decay, end_decay) are taken to schedule the learning rate.
the learning rate will be lr_init only when the epoch has end_warm < epoch < start_decay

@aspnetcs
Copy link
Author

aspnetcs commented Mar 2, 2022 via email

@LinXueyuanStdio
Copy link
Owner

you can refer to https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.MultiplicativeLR.html for pytorch's MultiplicativeLR.

@LinXueyuanStdio
Copy link
Owner

emmm...
it seems you are trying to reproduce with pytorch?
lr_scheduler is only a trick to improve performance. you can try any LR on your own.
Or you can even give up using LR and use a fixed learning rate.

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