-
Notifications
You must be signed in to change notification settings - Fork 122
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
ModuleDict.update should be called with an iterable of key/value pairs, but got ResNet #87
Comments
Hi @manza-ari , sorry that I missed the notification of this issue. Regarding the error "ModuleDict.update should be called with an iterable of key/value pairs, but got ResNet", it seems not an error raised from As for By the way, it's suggested to run the model with a few samples without LRFinder first. If it works well, then you can continue working on applying LRFinder with the model. This could help you clarify whether it's a problem with LRFinder or other thing else, and it also help you figure out the actual problem faster. Thanks! |
`class ModelWrapper(nn.Module):
class LossWrapper(nn.Module):
class OptimizerWrapper(optim.Optimizer):
if name == 'main':
|
Hi @manza-ari In the original implementation, # src: https://github.com/razvancaramalau/Sequential-GCN-for-Active-Learning/blob/master/main.py#L111-L113
models = {'backbone': resnet18}
if method =='lloss':
models = {'backbone': resnet18, 'module': loss_module} If you follow the same architecture, then that models = resnet18 Therefore, it raised the exact error message as it shown in the title of this issue:
Maybe you can try to rewrite |
okay, So I have implemented the dictionary again, but it started raising this error: AttributeError: Optimizer already has a scheduler attached to it I have changed the optimizer from SGD to Adam but now it says; |
Hi @manza-ari In order to make it easier to get the code work, it's strongly suggested following these steps:
Otherwise, I would worry that there would be further problems confusing you while too many things are mixed up. |
My Code is here I am facing the following error. I want to ask one more thing Does LR Finder doesn't work for DataParallel? I have commented on the scheduler so that LR-FInder could work properly.
`
Main
if name == 'main':
`
The text was updated successfully, but these errors were encountered: