尝试训练模型,但得到mmcv错误
No module named 'mmcv._ext'
mmcv库已经安装并导入
mmcv version = 1.4.0
Cuda version = 10.0
有解决问题的建议吗??
https://github.com/open-mmlab/mmdetection/issues/3271
基本上有两种解决方法。
Install latest mmdet and pip install mmcv-full or install pre-build ones from here. Install mmcv==0.6.2 and mmdet==2.2.1
或
first: pip uninstall mmcv then: pip install最新mmcv-full = = + torch1.5.0 + cu101 - fhttps://download.openmmlab.com/mmcv/dist/index.html我的mmdet版本是2.4.0,mmcv>=1.1.0
Try
mmcv==0.6.2 and mmdet==2.3.0
这对我有用
您是否按照安装指南安装了mmedit?
您可以尝试以下步骤修复:
- pip uninstall mmcv-full 安装mmcv
- 重新运行这个程序,确保它抛出ImportError: mmcv not found
- 用pip重新安装mmcv-full安装mmcv-full,或其他版本,根据您的要求。
- 进口mmcv。