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

something error,mmcv don't have Config and DictAction #5

Open
genie666 opened this issue May 8, 2023 · 6 comments
Open

something error,mmcv don't have Config and DictAction #5

genie666 opened this issue May 8, 2023 · 6 comments

Comments

@genie666
Copy link

genie666 commented May 8, 2023

from mmcv import Config, DictAction
from mmcv.parallel import MMDataParallel
from mmcv.runner import get_dist_info, init_dist, load_checkpoint
from mmedit.apis import multi_gpu_test, set_random_seed, single_gpu_test
from mmedit.core.distributed_wrapper import DistributedDataParallelWrapper
from mmedit.datasets import build_dataloader, build_dataset
from mmedit.models import build_model
from mmedit.utils import setup_multi_processes

ImportError: cannot import name 'Config' from 'mmcv'

Error reported during test run, unable to find these packages

@jiaqixuac
Copy link
Owner

mmcv-full==1.7.1 is used

@genie666
Copy link
Author

genie666 commented May 8, 2023

I have installed mmcv full==1.7.1 and mmcv==2.0.0, but I still cannot find these package files

@LiuXuan66
Copy link

maybe you need to uninstall mmcv==2.0.0, and only keep the mmcv-full==1.7.1

@LiuXuan66
Copy link

I have installed mmcv full==1.7.1 and mmcv==2.0.0, but I still cannot find these package files

or you can just modify the mmcv to mmengine in import

@genie666
Copy link
Author

genie666 commented May 9, 2023

I have installed mmcv full==1.7.1 and mmcv==2.0.0, but I still cannot find these package files

or you can just modify the mmcv to mmengine in import

Thank you. I solved that problem, but I have encountered a new one

ModuleNotFoundError: No module named 'mmcv._ ext'

@lszhao71
Copy link

lszhao71 commented May 3, 2024

ModuleNotFoundError: No module named 'mmcv._ ext'

I have this problem too, had you found the solution ?

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

4 participants