- 报错:
ModuleNotFoundError: No module named ‘mmcv._ext’
- 原因:
mmcv、cuda、torch版本不匹配
- 解决方法:
1、重新安装pytorch
参考网址:https://pytorch.org/get-started/previous-versions/
最终选择:conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3 -c pytorch -c conda-forge
2、重新安装mmcv
参考网址:https://mmcv.readthedocs.io/zh_CN/v1.3.18/get_started/installation.html
最终选择:pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/index.html