-
Notifications
You must be signed in to change notification settings - Fork 339
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: optimizer got an echuxian mpty parameter list #13
Comments
这是优化器定义时,不小心写错了模型的名字,已经改过来 |
你好请问这个具体在哪里修改呀,我没找见,出现了同样的错误 |
你好请问这个具体在哪里修改呀,我没找见,出现了同样的错误 |
你这个问题解决了吗 |
已解决问题,train.py 43行param.requires_grad = False,将False改为True即可正常训练 |
在加载完模型之后出现错误ValueError: optimizer got an empty parameter list
定位到的报错位置是
File "train.py", line 76, in
optimizer = optim.Adam(filter(lambda p: p.requires_grad, model.parameters()), lr=cfg.LR)
The text was updated successfully, but these errors were encountered: