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

Learning rate scheduler not updated in train_step #12

Open
Darkhunter9 opened this issue Jun 22, 2021 · 1 comment
Open

Learning rate scheduler not updated in train_step #12

Darkhunter9 opened this issue Jun 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Darkhunter9
Copy link

My tensorflow version is 2.1.0. I found that when calling step() of the learning rate scheduler, lr is not updated (the scheduler works fine when tested individually). I guess it has something to do with distributed strategy run process. The problem is fixed if moving the learning rate updating process to the main loop, instead of in training step function.

https://github.com/LongxingTan/Yolov5/blob/88acfd988decc4cc78335cfb6eb50f1975294c1f/yolo/train.py#L122

@Darkhunter9 Darkhunter9 added the bug Something isn't working label Jun 22, 2021
@LongxingTan
Copy link
Owner

Hi @Darkhunter9 ,
Thanks for your carefully check about the code. you found so many bug and kindly give solutions, I will check that. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants