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

build_backbone #3792

Open
dongxiaofei12 opened this issue Oct 11, 2024 · 0 comments
Open

build_backbone #3792

dongxiaofei12 opened this issue Oct 11, 2024 · 0 comments

Comments

@dongxiaofei12
Copy link

image
Traceback (most recent call last):
File "/home/badwater/lw/mmsegmentation-main/mmseg/unet.py", line 32, in
main()
File "/home/badwater/lw/mmsegmentation-main/mmseg/unet.py", line 26, in main
model = build_backbone(backbone_cfg)
File "/home/badwater/lw/mmsegmentation-main/mmseg/models/builder.py", line 17, in build_backbone
return BACKBONES.build(cfg)
File "/home/badwater/miniconda3/envs/mmseg/lib/python3.8/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/home/badwater/miniconda3/envs/mmseg/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 232, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File "/home/badwater/miniconda3/envs/mmseg/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "/home/badwater/lw/mmsegmentation-main/mmseg/models/backbones/unet.py", line 370, in init
UpConvBlock(
File "/home/badwater/lw/mmsegmentation-main/mmseg/models/utils/up_conv_block.py", line 77, in init
self.upsample = build_upsample_layer(
File "/home/badwater/miniconda3/envs/mmseg/lib/python3.8/site-packages/mmcv/cnn/bricks/upsample.py", line 85, in build_upsample_layer
raise KeyError(f'Cannot find {upsample} in registry under scope '
KeyError: 'Cannot find None in registry under scope name mmengine'
Why do I encounter this error when building UNet? However, I had no issues during training.

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

1 participant