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

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

暂无评论

发表评论

相关推荐

Python实现一个简单的目标检测

相关介绍 选择性搜索(Select Search)算法属于候选区域算法,用分割不同区域的办法来识别潜在的物体。在分割的时候,我们要合并那些在某些方面(如颜色、纹理&#xff0

YOLOX训练自己的数据集,txt形式

YOLOX官方支持训练VOC和COCO数据集,但习惯了Yolov3~v5的txt加载数据集,尤其是训练自己的数据集时,标签写入txt文本更方便些,但是YOLOX官方要你自己写&#xff0c