-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
lr decay #58
Comments
具体是在ppocr.optimizer.AdamDecay()函数中设置lr_decay。 PaddleOCR使用importlib 通过yml文件中的参数选择调用哪个模块,设置lr decay需要在优化器里,优化器的定义在program.py中的176行
opt_params 是读取到的yml文件中的参数,假设使用config/rec/rec_chinese_lite_train.yml配置文件,有关优化器的定义是:
说明优化器的声明函数的是ppocr.optimizer.AdamDecay,所以可以在AdamDecay加上lr decay。 |
好的,谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
训练crnn,应该在哪里设置lr decay呢
The text was updated successfully, but these errors were encountered: