在安装完mmdetection3D之后,使用其中现有数据集的训练脚本进行训练时候,出现了以下错误:
AttributeError: module 'pycocotools' has no attribute '__version__'
其实是因为在安装mmdetection的时候,其中系统上已经安装了pycocotools的python包,而mmdetection是使用的自己开发的pycocotools,当系统中已经安装了此包的时候,mmdetection不会覆盖安装,也就是说,需要首先
pip uninstall pycocotools
进行卸载原本通过pip或者conda安装的包,然后重新安装mmdetection就会重新安装open-mmlab开发的pycocotools。