SegFormer icon indicating copy to clipboard operation
SegFormer copied to clipboard

Evaluation报错无法执行成功

Open heblade opened this issue 4 years ago • 0 comments

执行脚本: python ./tools/test.py ./local_configs/segformer/B1/segformer.b1.512x512.ade.160k.py ./checkpoints/trained/segformer.b1.512x512.ade.160k.pth 报错信息: Traceback (most recent call last): File "c:\xxxx\github\mmcv\mmcv\utils\registry.py", line 51, in build_from_cfg return obj_cls(**args) File "C:\xxxx\github\torch_env\lib\site-packages\mmseg\datasets\pipelines\test_time_aug.py", line 59, in init self.transforms = Compose(transforms) File "C:\xxxx\github\torch_env\lib\site-packages\mmseg\datasets\pipelines\compose.py", line 22, in init transform = build_from_cfg(transform, PIPELINES) File "c:\xxxx\github\mmcv\mmcv\utils\registry.py", line 44, in build_from_cfg f'{obj_type} is not in the {registry.name} registry') KeyError: 'AlignedResize is not in the pipeline registry'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\xxxx\github\mmcv\mmcv\utils\registry.py", line 51, in build_from_cfg return obj_cls(**args) File "C:\xxxx\github\torch_env\lib\site-packages\mmseg\datasets\ade.py", line 84, in init **kwargs) File "C:\xxxx\github\torch_env\lib\site-packages\mmseg\datasets\custom.py", line 88, in init self.pipeline = Compose(pipeline) File "C:\xxxx\github\torch_env\lib\site-packages\mmseg\datasets\pipelines\compose.py", line 22, in init transform = build_from_cfg(transform, PIPELINES) File "c:\xxxx\github\mmcv\mmcv\utils\registry.py", line 54, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') KeyError: "MultiScaleFlipAug: 'AlignedResize is not in the pipeline registry'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./tools/test.py", line 166, in main() File "./tools/test.py", line 122, in main dataset = build_dataset(cfg.data.test) File "C:\xxxx\github\torch_env\lib\site-packages\mmseg\datasets\builder.py", line 73, in build_dataset dataset = build_from_cfg(cfg, DATASETS, default_args) File "c:\xxxx\github\mmcv\mmcv\utils\registry.py", line 54, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') KeyError: 'ADE20KDataset: "MultiScaleFlipAug: 'AlignedResize is not in the pipeline registry'"'

heblade avatar Aug 06 '21 11:08 heblade