TransFG icon indicating copy to clipboard operation
TransFG copied to clipboard

About train.py

Open Christine620 opened this issue 3 years ago • 1 comments

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 ?

Christine620 avatar May 12 '21 15:05 Christine620

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

cwq63 avatar May 17 '21 08:05 cwq63