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

cls.CLASSES or classes should be specified when testing #19

Open
JunzheJosephZhu opened this issue Jul 25, 2022 · 1 comment
Open

cls.CLASSES or classes should be specified when testing #19

JunzheJosephZhu opened this issue Jul 25, 2022 · 1 comment

Comments

@JunzheJosephZhu
Copy link

Hi, I'm trying to run the test script but encountered this error:
CUDA_VISIBLE_DEVICES=0 python -m torch.distributed.launch --nproc_per_node=4 --master_port=${PORT:-4040} tools/test.py checkpoints/SETR_Naive_ReLeM/SETR_Naive_768x768_80k_base.py checkpoints/SETR_Naive_ReLeM/iter_80000.pth --launcher pytorch --eval mIoU

Traceback (most recent call last):
File "/home/joseph/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/registry.py", line 69, in build_from_cfg
return obj_cls(**args)
File "/home/joseph/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmseg/datasets/custom.py", line 117, in init
'cls.CLASSES or classes should be specified when testing'
AssertionError: cls.CLASSES or classes should be specified when testing

@JunzheJosephZhu
Copy link
Author

I think I solved the issue, I didn't realize this was a fork of mmseg, so I followed the instructions in get_started.md and installed the official version of mmseg

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