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

MMCV Error(mmcv-full 1.2.2 torch1.6 python3.7) #40

Closed
rfww opened this issue Aug 11, 2021 · 3 comments
Closed

MMCV Error(mmcv-full 1.2.2 torch1.6 python3.7) #40

rfww opened this issue Aug 11, 2021 · 3 comments

Comments

@rfww
Copy link

rfww commented Aug 11, 2021

Can you help me solve this problem? I use the dataset in VOC format.

Traceback (most recent call last):
File "tools/train.py", line 163, in
main()
File "tools/train.py", line 159, in main
meta=meta)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/apis/train.py", line 91, in train_segmentor
val_dataset = build_dataset(cfg.data.val, dict(test_mode=True))
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/builder.py", line 73, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/home/ubuntu/anaconda3/envs/setr/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pascal_context.py", line 53, in init
**kwargs)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/custom.py", line 86, in init
self.pipeline = Compose(pipeline)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pipelines/compose.py", line 22, in init
transform = build_from_cfg(transform, PIPELINES)
File "/home/ubuntu/anaconda3/envs/setr/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pipelines/test_time_aug.py", line 59, in init
self.transforms = Compose(transforms)
File "/home/ubuntu/disk1/user/SETR-main/mmseg/datasets/pipelines/compose.py", line 22, in init
transform = build_from_cfg(transform, PIPELINES)
File "/home/ubuntu/anaconda3/envs/setr/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
TypeError: init() got an unexpected keyword argument 'dataset'

@Nanjiangang
Copy link

Have you solved it? I have the same problem?

@rfww
Copy link
Author

rfww commented Nov 15, 2021

No!!! I give it up.

@sixiaozheng
Copy link
Collaborator

Maybe your environment is installed incorrectly, please refer to the A from-scratch setup script in the README.md to reinstall the environment.

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

3 participants