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

The latest version of mmcv has no 'Config' #19

Open
sailing-innocent opened this issue Jun 16, 2023 · 0 comments
Open

The latest version of mmcv has no 'Config' #19

sailing-innocent opened this issue Jun 16, 2023 · 0 comments

Comments

@sailing-innocent
Copy link

Hello, notice that you are using mmcv.Config in run.py. However, in the latest version of mmcv, this attribute has been removed and may cause issue. see open-mmlab/mmdeploy#1781 for details.

so for mmcv 2.0.0 version and later, maybe it is required to use mmengine instread of mmcv

# in run.py
...
# import mmcv
import mmengine 
...
...
    # cfg = mmcv.Config.fromfile(args.config)
    cfg = mmengine.Config.fromfile(args.config)
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

1 participant