Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: index 52 is out of bounds for axis 1 with size 52 #341

Open
Frank-qlu opened this issue Oct 14, 2019 · 10 comments
Open

IndexError: index 52 is out of bounds for axis 1 with size 52 #341

Frank-qlu opened this issue Oct 14, 2019 · 10 comments
Labels
question Further information is requested

Comments

@Frank-qlu
Copy link

更换数据集后,.names换成一类,训练时候dataset.py 244行报错,请问什么原因,怎么解决?
Instructions for updating:
Use standard file APIs to check for files with this prefix.
0%| | 0/17 [00:00<?, ?it/s]Traceback (most recent call last):
File "train.py", line 184, in
if name == 'main': YoloTrain().train()
File "train.py", line 144, in train
for train_data in pbar:
File "F:\Lee\tensorflow_for_YOLOv3\venv\lib\site-packages\tqdm\std.py", line 1081, in iter
for obj in iterable:
File "F:\Lee\tensorflow-yolov3-master\core\dataset.py", line 82, in next
label_sbbox, label_mbbox, label_lbbox, sbboxes, mbboxes, lbboxes = self.preprocess_true_boxes(bboxes)
File "F:\Lee\tensorflow-yolov3-master\core\dataset.py", line 244, in preprocess_true_boxes
label[best_detect][yind, xind, best_anchor, :] = 0
IndexError: index 52 is out of bounds for axis 1 with size 52
0%| | 0/17 [00:00<?, ?it/s]

@Frank-qlu
Copy link
Author

已解决

@liam181113
Copy link

请问训练自己数据集,检测效果怎么样啊?

@Frank-qlu
Copy link
Author

请问训练自己数据集,检测效果怎么样啊?
正在训练

@Code-Fight
Copy link

@Frank-qlu 怎么解决的 我也有同样的问题

@farazBhatti
Copy link

Hi, i am also getting the same error.

IndexError: index 76 is out of bounds for axis 1 with size 76 .
I am using custom dataset with training.txt file in the following manner

./complete/imgs/CAR00718.jpg0.851124,0.291667,0.196629,0.125000,15

@YunYang1994
Copy link
Owner

be sure that " 0<=xmax <= width and 0<=ymax<=height "

@YunYang1994 YunYang1994 added the question Further information is requested label Oct 24, 2019
@llllearner
Copy link

已解决

大佬可以讲述一下怎么回事吗?

@fxcdl
Copy link

fxcdl commented Feb 8, 2020

已解决

您好 请问您是怎么解决这个问题的?

@CNUyue
Copy link

CNUyue commented Mar 5, 2020

您好,问一下您怎么解决的

@llllearner
Copy link

您好,问一下您怎么解决的

确实是因为数据集的label问题,你生成annotation文件的时候注意检查label的正确性就可以。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

8 participants