mmdetection ValueError: need at least one array to concatenate解决方案

在mmdetection中有时候训练模型会出现ValueError: need at least one array to concatenate的错误,详情如下图所示。

mmdetection ValueError: need at least one array to concatenate解决方案

mmdetection ValueError: need at least one array to concatenate解决方案

mmdetection ValueError: need at least one array to concatenate解决方案

只要配置文件中classes设置正确了,voc数据就不会出现上述的报错。

mmdetection ValueError: need at least one array to concatenate解决方案

然后生成的coco数据存在问题,本来只有一个shoot类别的coco数据,结果出现了 20余个supercategory项目。这就是导致报错的根源。

mmdetection ValueError: need at least one array to concatenate解决方案

在转换数据集时,需要通过在tools\dataset_converters\pascal_voc.py文件按照以下标准以下设置修改自定义类别

mmdetection ValueError: need at least one array to concatenate解决方案

在修改coco数据集的错误后,现在mmdetection可以正常训练数据了。

mmdetection ValueError: need at least one array to concatenate解决方案

Original: https://blog.csdn.net/a486259/article/details/125475286
Author: 万里鹏程转瞬至
Title: mmdetection ValueError: need at least one array to concatenate解决方案

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/777213/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球