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

Emergency!!!Error using AI-TOD dataset #32

Open
todesti2 opened this issue Dec 14, 2023 · 4 comments
Open

Emergency!!!Error using AI-TOD dataset #32

todesti2 opened this issue Dec 14, 2023 · 4 comments

Comments

@todesti2
Copy link

Greetings! I have downloaded the AI-TOD dataset correctly. But when I train it, I find that it reports an error:

……………… Illegal image file: /root/autodl-tmp/AI-TOD/train/3b444d792.png, and it will be ignored Traceback (most recent call last)
assert ct > 0, 'not found any coco record in %s' % (anno_path) AssertionError: not found any coco record in /root/autodl-tmp/AI-TOD/annotations/aitod_trainval_v1.json

I can make sure that the path to my dataset is not wrong and the framework used is not wrong, because switching to a different dataset will train it fine。I'm not sure what this is about, many of the images are ruled illegitimate and therefore ignored。The json file won't open either, causing me to not be able to find the problem。

Very much looking forward to your reply!

@Chasel-Tsui
Copy link
Collaborator

Hi, thanks for your question. I am not sure of the framework you are using, but one probable reason may be that the image path and annotation path are not correctly set.

@todesti2
Copy link
Author

todesti2 commented Dec 15, 2023

您好,感谢您的提问。我不确定您正在使用的框架,但一个可能的原因可能是图像路径和注释路径设置不正确。

Thank you for your reply.

But I've double-checked that there are no errors in the image and annotation paths

image

I use paddledetection in BaiDu。It runs fine with other datasets, but with AI-TOD it reports the above error, I just don't know what to do……

@Chasel-Tsui
Copy link
Collaborator

Hi, I have just checked the paddledet, this error is raised in line 243, that means "ct=0", and the img cannot be read given the address "/root/autodl-tmp/AI-TOD/train/3b444d792.png". You can firstly check if there is an image of the corresponding name from this address, if not, that means the AI-TOD you are using is incomplete

@todesti2
Copy link
Author

嗨,我刚刚检查了 paddledet,此错误在第 243 行中引发,意思是“ct=0”,并且给定地址“/root/autodl-tmp/AI-TOD/train/3b444d792.png”无法读取 img。您可以先检查一下该地址是否有对应名称的图片,如果没有,则说明您正在使用的AI-TOD不完整

Thank you for going through the frames for me specifically, there are actually a lot of images that are showing up as illegal, I've only put up the last message here. I have checked that the image exists at that address and is complete.

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