日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

yunyang1994 tensorflow_yolov3训练报错:IndexError: index 68 is out of bounds for axis 1 with size 68 数据清洗

發(fā)布時(shí)間:2025/3/20 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 yunyang1994 tensorflow_yolov3训练报错:IndexError: index 68 is out of bounds for axis 1 with size 68 数据清洗 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

運(yùn)行訓(xùn)練時(shí)報(bào)錯(cuò):

IndexError: index 68 is out of bounds for axis 1 with size 68


解決辦法:
不要?jiǎng)h掉checkpoint文件夾里的yolov3_coco.ckpt的三個(gè)文件

媽蛋,好像不是這個(gè)原因,還是報(bào)錯(cuò)!!!

然后我嘗試去除掉了訓(xùn)練文件中沒(méi)有目標(biāo)標(biāo)注的空文件,還是不行:

去掉前:

去掉后:

后來(lái)查到些問(wèn)題,貌似是沒(méi)做數(shù)據(jù)清洗,標(biāo)注的坐標(biāo)是混亂的、有誤的!!!

參考文章:IndexError: index 52 is out of bounds for axis 1 with size 52

作者在問(wèn)題下提到:

后來(lái)我一查,果然坐標(biāo)標(biāo)注數(shù)據(jù)有問(wèn)題:



所以,訓(xùn)練前必須做數(shù)據(jù)清洗!!!

還有,這么多同樣的數(shù)據(jù)是咋回事,被病毒入侵了嗎?


經(jīng)過(guò)數(shù)據(jù)清洗,查到了一大堆坐標(biāo)超限和錯(cuò)誤class_id的錯(cuò)誤數(shù)據(jù):

D:\20200204_tensorflow_yolov3_train\python\python.exe D:/20200204_tensorflow_yolov3_train/tensorflow-yolov3/dontla_convert_annotation/Python_Convert_Annotations_From_Yolo_to_Tensorflow-Yolov3/convert_txt-Yolo2Tensorflow.py 錯(cuò)誤標(biāo)注: 12.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 389.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 754.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 862.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 1422.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 1479.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 1479.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 1831.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 2793.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 2803.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 2824.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3393.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3436.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3451.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3452.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3459.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3461.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3463.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3463.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3515.txt [2, 0.446484, 0.140972, 0.146094, 0.151389] [478, 47, 665, 156, 2] 錯(cuò)誤標(biāo)注: 3515.txt [2, 0.492969, 0.500694, 0.139062, 0.206944] [542, 286, 720, 435, 2] 錯(cuò)誤標(biāo)注: 3533.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3542.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3564.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3581.txt [2, 0.344922, 0.509028, 0.122656, 0.170833] [363, 305, 520, 428, 2] 錯(cuò)誤標(biāo)注: 3581.txt [2, 0.734766, 0.234028, 0.146094, 0.179167] [847, 104, 1034, 233, 2] 錯(cuò)誤標(biāo)注: 3581.txt [2, 0.693359, 0.665278, 0.144531, 0.247222] [795, 390, 980, 568, 2] 錯(cuò)誤標(biāo)注: 3581.txt [2, 0.323047, 0.788889, 0.136719, 0.172222] [326, 506, 501, 630, 2] 錯(cuò)誤標(biāo)注: 3604.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3610.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3615.txt [2, 0.360547, 0.570139, 0.125781, 0.190278] [381, 342, 542, 479, 2] 錯(cuò)誤標(biāo)注: 3615.txt [2, 0.639844, 0.372917, 0.15625, 0.251389] [719, 178, 919, 359, 2] 錯(cuò)誤標(biāo)注: 3673.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3758.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3779.txt [2, 0.553516, 0.540278, 0.147656, 0.2] [614, 317, 803, 461, 2] 錯(cuò)誤標(biāo)注: 3779.txt [2, 0.349609, 0.757639, 0.138281, 0.206944] [359, 471, 536, 620, 2] 錯(cuò)誤標(biāo)注: 3806.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3812.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3817.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3838.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3958.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 3986.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4040.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4055.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4087.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4091.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4109.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4138.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4144.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4164.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4188.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4223.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4284.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4318.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4348.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4357.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4362.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4376.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4397.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4397.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4421.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4426.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4443.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4460.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4466.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4472.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4486.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0] 錯(cuò)誤標(biāo)注: 4662.txt [0, 0.0, -0.138889, 0.0, 0.0] [0, -100, 0, -100, 0]Process finished with exit code 0

將錯(cuò)誤標(biāo)注清除后,終于能正常訓(xùn)練了:



參考文章:將yolo標(biāo)注轉(zhuǎn)換為tensorflow_yolov3標(biāo)注生成train.txt和test.txt同時(shí)做數(shù)據(jù)清洗

總結(jié)

以上是生活随笔為你收集整理的yunyang1994 tensorflow_yolov3训练报错:IndexError: index 68 is out of bounds for axis 1 with size 68 数据清洗的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。