mmdetection报错:value error: need at least one array to concatenate
使用mmdetection训练faster rcnn模型时报错。
经排查发现我的coco.py classes_name.py faster-rcnn_r50_fpn_1x_coco.py文件中的数据集设置均没有问题。
最后发现,原因是我在手动安装了mmdetection的情况下,又安装了mmdet库。
手动安装mmdetection:
GitHub - open-mmlab/mmdetection at v3.0.0
安装了mmdet库后,训练时会优先调用mmdet库中的代码。
python tools/train.py work_dirs/faster-rcnn_r50_fpn_1x_coco/faster-rcnn_r50_fpn_1x_coco.py
卸载mmdet库后,重新运行训练指令。成功
没想到mmdet库也是导致该错误发生的原因之一。
**************************************************************
奇怪了,后面复现了一下,好像又不是mmdet库的原因。