train.py 训练过程中 IndexError: index 1 is out of bounds for dimension 4 with size 1

报错:IndexError: index 1 is out of bounds for dimension 4 with size 1

训练自己的模型过程中,出现以上错误
原因:数组越界

一般是类别文件没有修改

voc_classes.txt中添加子的类别

voc_classes.txt
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
pottedplant
sheep
sofa
train
tvmonitor

版权声明:本文为CSDN博主「Bean_zx」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_25038325/article/details/119905880

Bean_zx

我还没有学会写个人说明!

暂无评论

发表评论

相关推荐

NMS非极大值抑制

IOU IoU 的全称为交并比(Intersection over Union),IoU 计算方法有两种 1、 “预测的边框” 和 “真实的边框” 的交集和并集的比值。 2、 “预测的边框” 和 “真

YOLO-Fastest训练自己的数据

YOLO-Fastest训练自己的数据 继续yolo-fastest的学习,上一篇已经基本跑通了yolo-fastest,接下来开始训练,本次代码依旧是:https://github.c