Code Monkey home page Code Monkey logo

Comments (14)

aasharma90 avatar aasharma90 commented on July 16, 2024 49

You can try replacing
from mmcv.config import Config
with
from mmengine.config import Config

Or install mmcv-full package

from mmcv.

kekaipr avatar kekaipr commented on July 16, 2024 8

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.

pyl62112991 avatar pyl62112991 commented on July 16, 2024 5

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.

Crafterluck avatar Crafterluck commented on July 16, 2024 4

Thank you, it was very helpful, basically you have to change every mmcv to mmengine.

from mmcv.

Euphoria16 avatar Euphoria16 commented on July 16, 2024

Hello, I met the same problem. Could you please tell me how you solved this problem?

from mmcv.

Msalehi237 avatar Msalehi237 commented on July 16, 2024

I have the same issue. Has anyone solved this?

from mmcv.

AmingWu avatar AmingWu commented on July 16, 2024

@Msalehi237 ,Have you solved this problem?

from mmcv.

korabelnikov avatar korabelnikov commented on July 16, 2024

@AmingWu
Have you solved this problem?

from mmcv.

PLEX-GR00T avatar PLEX-GR00T commented on July 16, 2024

i got the same error, can you help me guys?

from mmcv.

Dandelionym avatar Dandelionym commented on July 16, 2024

So, how, please?

from mmcv.

limchr avatar limchr commented on July 16, 2024

Have you solved this problem?

from mmcv.

alaa-shubbak avatar alaa-shubbak commented on July 16, 2024

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.

Crafterluck avatar Crafterluck commented on July 16, 2024

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.

yingqichao avatar yingqichao commented on July 16, 2024

Using a lower version seems to be okay.

from mmcv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.