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

'MaskPseudoSampler is already registered in bbox_sampler' #27

Open
Ken-97 opened this issue Mar 8, 2022 · 5 comments
Open

'MaskPseudoSampler is already registered in bbox_sampler' #27

Ken-97 opened this issue Mar 8, 2022 · 5 comments

Comments

@Ken-97
Copy link

Ken-97 commented Mar 8, 2022

when I tried to reproduce this model, I came up with this error after I ran
PYTHONPATH='./':$PYTHONPATH mim train mmdet ./K-Net/configs/det/knet/knet_s3_r50_fpn_1x_coco.py --work-dir=./K-Net/working_directory

is there anything wrong about my command or the version of mmcv?

@AlphaNext
Copy link

Hi @Ken-97 , I use the following version and solve this error. Hope this could help you.

 mmcv-full == v1.3.14
 mmdetection == v2.17.0

@TonightGo
Copy link

以下是我的处理方式:mmdet中是有这个MaskPseudoSampler的,而且一模一样,你可以把config中的'my_mmdet.knet.det.mask_pseudo_sampler'注释掉,mask_hungarian_assigner中的函数,在mmdet中也存在,但接口有些差异,改下mask_hungarian_assigner函数名,并且改掉相应引用处。

@bxiang233
Copy link

以下是我的处理方式:mmdet中是有这个MaskPseudoSampler的,而且一模一样,你可以把config中的'my_mmdet.knet.det.mask_pseudo_sampler'注释掉,mask_hungarian_assigner中的函数,在mmdet中也存在,但接口有些差异,改下mask_hungarian_assigner函数名,并且改掉相应引用处。

请问可以具体讲一下:“mask_hungarian_assigner中的函数,在mmdet中也存在,但接口有些差异,改下mask_hungarian_assigner函数名,并且改掉相应引用处。”
这里是怎么改的吗?谢谢!

@star379814385
Copy link

@bxiang233 register_module有个参数是force,你可以将其设置为True

@natwille1
Copy link

I ran into the same issue, any update on this?

File /anaconda/envs/or_cleaning/lib/python3.8/site-packages/mmcv/utils/registry.py:272, in Registry._register_module(self, module, module_name, force)
270 for name in module_name:
271 if not force and name in self._module_dict:
--> 272 raise KeyError(f'{name} is already registered '
273 f'in {self.name}')
274 self._module_dict[name] = module

KeyError: 'MaskPseudoSampler is already registered in bbox_sampler'

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

6 participants