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

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

暂无评论

发表评论

相关推荐

实战 | 实时的目标检测与识别简单应用

吃粽子迎端午计算机视觉研究院专栏作者:Edison_G最近总是有很多入门的朋友问我,我进入计算机视觉这个领域难不难?是不是要学习很多知识?到底哪个方向比较好?长按扫描二维码关

小目标检测总结

小目标检测总结
小目标的定义:图像中极少的小目标(32像素×32像素一下)
注:一般来说下采样率为2,一般的特征提取网络通常进行五次下采样。而五次下采样的倍率为2的五次方