open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
8.03k stars 2.58k forks source link

添加模型之后报错 #3582

Open stu0440 opened 7 months ago

stu0440 commented 7 months ago

自己写了一个backbones-->ZhRes50Unet,在init.py添加了,但是在使用时报错,下面报错信息: KeyError: 'ZhRes50Unet is not in the mmseg::model registry. Please check whether the value of ZhRes50Unet is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'

Zoulinx commented 6 months ago

Are you using pip install "mmsegmentation>=1.0.0"? Try installing mmseg from source.

Saillxl commented 4 months ago

请问解决了吗