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

请问为什么evaluate时会报list out of range #37

Open
ysyydsysyyds opened this issue Jul 10, 2023 · 1 comment
Open

请问为什么evaluate时会报list out of range #37

ysyydsysyyds opened this issue Jul 10, 2023 · 1 comment

Comments

@ysyydsysyyds
Copy link

我是在将edgeyolo用于自己的数据集时遇到这个问题的,如果直接训练的话可以完成训练,但在评估时报此错误。之后直接评估也是此错误,具体报错信息如下。我的数据集是coco格式的,也可以用别的模型跑起来。不过我的类别只有四个,是否是类别数量太少的原因?该如何修改呢?
File "/home/workspace/edgeyolo/edgeyolo/train/val/coco_evaluator.py", line 192, in convert_to_coco_format
label = self.dataloader.dataset.class_ids[int(cls[ind])]
IndexError: list index out of range

@LSH9832
Copy link
Owner

LSH9832 commented Dec 6, 2023

coco原数据集能跑起来没问题说明dataloader代码没问题,可能这个代码对数据集的规范性的要求比较高,实在不行的话就转yolo格式吧。

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

No branches or pull requests

2 participants