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

报错内容ValueError: The provided lr scheduler "<torch.optim.lr_scheduler.LambdaLR object at 0x7fe3d759bb50>" is invalid #48

Open
kkkjjjj1 opened this issue Oct 19, 2023 · 4 comments

Comments

@kkkjjjj1
Copy link

按照教程在esc-50上进行训练,显示上面的报错是什么原因,怎么修改呢

@zszheng147
Copy link

Hi, bro, same problem here. Do you solve it?

1 similar comment
@mqmmwu
Copy link

mqmmwu commented Nov 4, 2023

Hi, bro, same problem here. Do you solve it?

@RetroCirce
Copy link
Owner

Hi, I think the reason is probably due to the update of torch and pytorch lightning.
The code is implemented using torch 1.7.1 and pytorch lightning 1.5.9 --> but now they both have 2.x as latest version.
Perhaps you can check if the declaration and assignment of the Lambda scheduler needs to be changed.

@ben100118
Copy link

是pytorch版本问题,你试试torch==1.10.0

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

5 participants