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

module 'mmcv' has no attribute 'dump'[Bug] #2844

Closed
2 tasks done
wanrui12232385 opened this issue Jun 21, 2023 · 1 comment
Closed
2 tasks done

module 'mmcv' has no attribute 'dump'[Bug] #2844

wanrui12232385 opened this issue Jun 21, 2023 · 1 comment

Comments

@wanrui12232385
Copy link

Prerequisite

Environment

macos python3.9
mmcv = 2.0.0
image

Reproduces the problem - code sample

mmcv.dump(info, filename)

Reproduces the problem - command or script

No

Reproduces the problem - error message

No

Additional information

no

@zhouzaida
Copy link
Collaborator

Hi @wanrui12232385 , this function has moved to mmengine since mmcv>=2.0.0. More details can be found at https://github.com/open-mmlab/mmcv/blob/main/docs/en/compatibility.md#v200.

If you want to use this function, you either import it from mmengine or mmcv < 2.0.0.

  • mmengine
from mmengine import dump
  • mmcv < 2.0.0
from mmcv import dump

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

2 participants