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

TypeError: SOLOv2: __init__() got an unexpected keyword argument 'mask_feat_head' #235

Open
ZHANGH83 opened this issue Nov 7, 2022 · 2 comments

Comments

@ZHANGH83
Copy link

ZHANGH83 commented Nov 7, 2022

I want to try a simple training on my own datasets, but got this error, how to solve it, please?

___Traceback (most recent call last):
File "c:\users\echo\mmcv\mmcv\utils\registry.py", line 69, in build_from_cfg
return obj_cls(**args)
TypeError: init() got an unexpected keyword argument 'mask_feat_head'

During handling of the above exception, another exception occurred:_

Traceback (most recent call last):
File "E:\DeepLearning\Pytorch\Projects\SOLO-master\SOLO-master\tools\train.py", line 127, in
main()
File "E:\DeepLearning\Pytorch\Projects\SOLO-master\SOLO-master\tools\train.py", line 100, in main
model = build_detector(
File "D:\Anaconda\Anaconda3\envs\mmlab\lib\site-packages\mmdet\models\builder.py", line 58, in build_detector
return DETECTORS.build(
File "c:\users\echo\mmcv\mmcv\utils\registry.py", line 237, in build
return self.build_func(*args, **kwargs, registry=self)
File "c:\users\echo\mmcv\mmcv\cnn\builder.py", line 27, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File "c:\users\echo\mmcv\mmcv\utils\registry.py", line 72, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
TypeError: SOLOv2: init() got an unexpected keyword argument 'mask_feat_head'
__

@Coisini-Tinkle
Copy link

I have encountered with the same problem .How to solve it? Please.

@hsuan1996
Copy link

Did you solved this problem?

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

3 participants