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

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

暂无评论

发表评论

相关推荐

将gpu运行的torch程序改为cpu运行

拿到了师兄的程序,但是自己手头的电脑无法使用cpu训练,虽然也可以使用colab在线运行,但是还是本地的会舒服一些,anyway,就得将代码稍作一下修改 方法&#xff1a