jiaqixuac / MAP-Net

[CVPR'23] Video Dehazing via a Multi-Range Temporal Alignment Network with Physical Prior
MIT License
111 stars 10 forks source link

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

Open genie666 opened 1 year ago

genie666 commented 1 year ago

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 commented 1 year ago

mmcv-full==1.7.1 is used

genie666 commented 1 year ago

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

LiuXuan66 commented 1 year ago

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

LiuXuan66 commented 1 year ago

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 commented 1 year ago

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 commented 6 months ago

ModuleNotFoundError: No module named 'mmcv._ ext'

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