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
Traceback (most recent call last):
File "tools/train.py", line 151, in <module>
main()
File "tools/train.py", line 124, in main
cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg)
File "/mmdetection/mmdet/models/builder.py", line 43, in build_detector
return build(cfg, DETECTORS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "/mmdetection/mmdet/models/builder.py", line 15, in build
return build_from_cfg(cfg, registry, default_args)
File "/mmdetection/mmdet/utils/registry.py", line 79, in build_from_cfg
return obj_cls(**args)
TypeError: __init__() got an unexpected keyword argument 'roi_head'
has anyone had such a problem or knows how to solve it?
The text was updated successfully, but these errors were encountered:
testchujtest
changed the title
Expected 4-dimensional input for 4-dimensional weight [64, 3, 3, 3], but got 5-dimensional input of size [1, 2, 3, 1152, 800] instead
TypeError: __init__() got an unexpected keyword argument 'roi_head'
Mar 4, 2022
Hi @testchujtest , It seems you are using cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py config file with mmdet's version 1x, while it is meant to be used with mmdet's version 2x.
Using cascade_mask_rcnn_hrnetv2p_w32_20e.py config file with mmdet's version 1x should resolve this error.
Hi,
i tried to train this model on custom data. I built docker image:
my config file:
but i'm getting this error:
has anyone had such a problem or knows how to solve it?
The text was updated successfully, but these errors were encountered: