记【安装mmcv教程】 以及 遇到的Error
git地址:MMCV
根据以上链接,安装了mmcv-full。
跑代码中出现以下4个错
python tools/train.py './configs/elsa_swin/cascade_elsa_small_1x.py'
AttributeError: 'super' object has no attribute '_specify_ddp_gpu_num'
AttributeError: ConvFCBBoxHead: 'super' object has no attribute '_specify_ddp_gpu_num'
AttributeError: CascadeRoIHead: ConvFCBBoxHead: 'super' object has no attribute '_specify_ddp_gpu_num'
AttributeError: CascadeRCNN: CascadeRoIHead: ConvFCBBoxHead: 'super' object has no attribute '_specify_ddp_gpu_num'
根据该链接,no attribute ‘_specify_ddp_gpu_num’
- 先安装了pip install mmcv==2.1.4,还剩一个错
AttributeError: ‘super’ object has no attribute ‘_specify_ddp_gpu_num’ - 在config文件cascade_elsa_small_1x.py中,把norm_cfg的type改为‘BN’,有几处改几处,这份文件有4处
!!!改完错误消失
继续下一个错误
AssertionError: Incompatible version of pycocotools is installed. Run pip uninstall pycocotools first. Then run pip install mmpycocotools to install open-mmlab forked pycocotools.