You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'Config' from 'mmcv'
ImportError: cannot import name 'get_dist_info' from 'mmengine.runner'
ImportError: cannot import name 'print_log' from 'mmcv'
未找到print_log出现位置
The text was updated successfully, but these errors were encountered:
感谢您非常优秀的工作,但是在复现过程中,我遇到了下列问题:
首先,按照文档安装,会自动安装mmcv-full==1.7.2版本
pip install -U openmim mim install "mmcv-full<2.0.0"
运行代码后报错:
错误原因在于该版本不兼容,至少安装2.0.0rc4版本的,重新安装
运行代码后,再次报错:
错误原因在于mmcv在2.0.x版本之后,Config 等一些训练相关的模块被删除了
这也能理解,为什么配置mmcv环境时的混乱不堪了
只能将报错的代码,逐步替换为2.0后版本的模块
https://stackoverflow.com/questions/75988459/cannot-import-name-config-from-mmcv-unknown-location
其中,报错内容:
未找到print_log出现位置
The text was updated successfully, but these errors were encountered: