jwwangchn / AI-TOD

Official code for "Tiny Object Detection in Aerial Images".
MIT License
194 stars 21 forks source link

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

Open todesti2 opened 11 months ago

todesti2 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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

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 commented 11 months ago

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 commented 11 months ago

嗨,我刚刚检查了 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.