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

About train.py #9

Open
Christine620 opened this issue May 12, 2021 · 1 comment
Open

About train.py #9

Christine620 opened this issue May 12, 2021 · 1 comment

Comments

@Christine620
Copy link

I found you write scheduler.step() before optimizer.step() in line 267-268 in train.py, when I run it,i got a UserWarning UserWarning: Seems like optimizer.step() has been overridden after learning rate scheduler initialization. Please, make sure to call optimizer.step() before lr_scheduler.step().,so is your code right on that place ?

@cwq63
Copy link

cwq63 commented May 17, 2021

I also use that,but it didn't report an UserWarning like this.

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