You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start training backbone.
Traceback (most recent call last):
File "../../tools/train.py", line 322, in
main()
File "../../tools/train.py", line 317, in main
train(train_loader, dist_model, optimizer, lr_scheduler, tb_writer)
File "../../tools/train.py", line 194, in train
optimizer, lr_scheduler = build_opt_lr(model.module, epoch)
File "../../tools/train.py", line 77, in build_opt_lr
for param in getattr(model.backbone, layer).parameters():
AttributeError: 'function' object has no attribute 'parameters'
How can I deal with it?
The text was updated successfully, but these errors were encountered:
resnet50
At 2020-05-14 17:24:59, "Zhiyuan Chen" <[email protected]> wrote:
What backbone are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
resnet50 At 2020-05-14 17:24:59, "Zhiyuan Chen" [email protected] wrote: What backbone are you using? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Sorry for this extremely late reply. getattr(model.backbone, layer) should have returned a backbone (nn.module) object, but what you got is a function.
start training backbone.
Traceback (most recent call last):
File "../../tools/train.py", line 322, in
main()
File "../../tools/train.py", line 317, in main
train(train_loader, dist_model, optimizer, lr_scheduler, tb_writer)
File "../../tools/train.py", line 194, in train
optimizer, lr_scheduler = build_opt_lr(model.module, epoch)
File "../../tools/train.py", line 77, in build_opt_lr
for param in getattr(model.backbone, layer).parameters():
AttributeError: 'function' object has no attribute 'parameters'
How can I deal with it?
The text was updated successfully, but these errors were encountered: