没有名为 'mmcv._ext' 的模块



尝试训练模型,但得到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?

您可以尝试以下步骤修复:

  1. pip uninstall mmcv-full
  2. 安装mmcv
  3. 重新运行这个程序,确保它抛出ImportError: mmcv not found
  4. 用pip重新安装mmcv-full安装mmcv-full,或其他版本,根据您的要求。
  5. 进口mmcv。

最新更新