Comments (14)
You can try replacing
from mmcv.config import Config
with
from mmengine.config import Config
Or install mmcv-full
package
from mmcv.
This problem still arises! Why is this issue closed? ImportError: cannot import name 'Config' from 'mmcv' (/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/init.py)
Hello,I just solve this problem by use following code:
import mmengine
mmengine.Config.fromfile(....)
after mmcv2.0.0,they seems delete some components in mmcv
let me know if you solve the problem by this method,thanks!
from mmcv.
Hi, I met the error when I run the code train.py, and I didn't find the 'Config'.
from mmcv import Config ImportError: cannot import name 'Config'
That change the version of mmcv can solve the problem. mmcv1.7.1 is ok for me.
from mmcv.
Thank you, it was very helpful, basically you have to change every mmcv to mmengine.
from mmcv.
Hello, I met the same problem. Could you please tell me how you solved this problem?
from mmcv.
I have the same issue. Has anyone solved this?
from mmcv.
@Msalehi237 ,Have you solved this problem?
from mmcv.
@AmingWu
Have you solved this problem?
from mmcv.
i got the same error, can you help me guys?
from mmcv.
So, how, please?
from mmcv.
Have you solved this problem?
from mmcv.
i got similar error
ImportError: cannot import name 'Config' from 'mmcv' (/home/shubbak/env_pose/lib/python3.9/site-packages/mmcv/__init__.py)
when open this file (init.py)
there was not such import of config , it contains only this :
`# Copyright (c) OpenMMLab. All rights reserved.
flake8: noqa
from .arraymisc import *
from .image import *
from .transforms import *
from .version import *
from .video import *
from .visualization import *
The following modules are not imported to this level, so mmcv may be used
without PyTorch.
- op
- utils
`
from mmcv.
This problem still arises! Why is this issue closed?
ImportError: cannot import name 'Config' from 'mmcv' (/home/user/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/__init__.py)
from mmcv.
Using a lower version seems to be okay.
from mmcv.
Related Issues (20)
- 在mmcv的2.1.0版本中,没有mmcv.runner.utils这个文件夹了,要怎么使用mmcv.runner.utils.obj_from_dict导入数据呢? HOT 3
- [Bug] `using namespace` in header file
- [Bug] CUDA Error: illegal memory access HOT 1
- [Bug] AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.2.0. HOT 20
- [Bug] ImportError: cannot import name 'CUDA_HOME' from 'mmcv.utils' (D:\mmaction2-master\venv2\lib\site-packages\mmcv\utils\__init__.py)
- [Bug] Installing mmcv in docker fails and show error: [Errno 2] No such file or directory: 'which' HOT 2
- [Bug]Some issue in installing rtmdet_tiny_8xb32-300e_coco in mmdet HOT 1
- [Bug] Unable to install MMCV 2.1.0 The detected CUDA version (11.8) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions. HOT 3
- [Bug] chamfer_distance Error in calculation result
- [Docs] 系统没安装cuda和cudnn是否影响mmcv使用?
- [Feature] Adding 'CascadeRCNN in the models registry
- subprocess-exited-with-error HOT 3
- [Bug]
- [Bug] roi_align_rotated_npu算子问题
- [Bug] Using google colab. I can't "Building wheels for collected packages: mmcv-full" HOT 3
- [Bug] can not install mmcv-full==1.4.7 in torch1.13.1 cuda11.7
- FileNotFoundError: [Errno 2] No such file or directory: ../DWPose/mmpose/mmpose/.mim/model-index.yml [Bug]
- [Bug] RuntimeError: CUDA error: invalid configuration argument
- [Bug] error: subprocess-exited-with-error HOT 1
- [Bug] SoftmaxFocalLossFunction backward bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmcv.