Coder Social home page Coder Social logo

Python tool generate_aitod_imgs.py doesn't generate a combined AI-TOD and xView dataset with JSON annotations for use in MMDET-AITOD training about ai-tod HOT 11 OPEN

hytel avatar hytel commented on July 20, 2024
Python tool generate_aitod_imgs.py doesn't generate a combined AI-TOD and xView dataset with JSON annotations for use in MMDET-AITOD training

from ai-tod.

Comments (11)

Chasel-Tsui avatar Chasel-Tsui commented on July 20, 2024

Hi, thanks for your interest in our work. First of all, we would like to clarify that we provide the 'generate_aitod_imgs.py' tool to create a full AI-TOD dataset, since the AI-TOD contains some images from xview. But we were informed by the official that we cannot directly release the images of xview otherwise there would be a license conflict, so we remove the images of xview and provide the part of AI-TOD w/o xview for the users to generate the full AI-TOD.
However, there are some websites that release the AI-TOD dataset like this_one, you can actually download it there...
Besides, the txt files are middle files when generating the complete dataset, the final correct annotation files are in the .json format

from ai-tod.

hytel avatar hytel commented on July 20, 2024

Thanks for responding right away! I did suspect the xView data was kept separately due to licensing, but I am very interested in the combined version. AITOD + xView. The problem is the JSON file ISN'T being written anywhere I can see by the 'generate_aitod_imgs.py' tool. In fact, I don't even see where in the script your WRITE ANY JSON file other than in functions that aren't being called (coco_merge, XVIEW2COCO). All I have is the images/labels directories. In order to do the training with the MMDET-AITOD code base though, it looks like I need the JSON annotations file. How did you generate it? The script seems incomplete. It ends without even doing any 'cleanup' even though the comment is there?

from ai-tod.

hytel avatar hytel commented on July 20, 2024

Also, I did try the link you provided above. Yes, after going through the registering process, and downloading 22gb of data, it looks like this is just the full v1 dataset (probably including xView) - which you point out very explicitly in the AI-TOD V2 site that it is MUCH worse than the v2 dataset which I am trying to construct using your tool. Again, it does look like in produces a full set of AITOD V2 images/labels, but no JSON annotations file. Is there a v2 zip downloadable version with JSON annotations?

from ai-tod.

Chasel-Tsui avatar Chasel-Tsui commented on July 20, 2024

Hi, sorry for the ambiguity, the 'generate_aitod_imgs.py' is only used to generate the images of AI-TOD. The AI-TOD and AI-TOD-v2 share images but have different annotations. We directly release the whole annotations of AI-TOD and AI-TOD-v2 in the .json format. You can download the AI-TOD's annotation here or AI-TOD-v2's annotation here

from ai-tod.

hytel avatar hytel commented on July 20, 2024

Right, but, when you say "AI-TOD-v2's annotations", do you mean AI-TOD + xView? Because When I create the "full" set, I need annotations for BOTH in JSON, right? My impression is that the script does TWO things, though it isn't clear. It creates a new custom dataset, that is both 1. The combined set of AI-TOD V2 + xView, and 2. Each image is sub-cropped into tine subimage_size x subimage_size. If so, the new dataset that is formed needs a NEW JSON annotations file, right?

from ai-tod.

Chasel-Tsui avatar Chasel-Tsui commented on July 20, 2024

AI-TOD-v2 refers to this paper where we re-annotate the AI-TOD and release a version of much higher annotation quality. The AI-TOD-v2 is not a combination of AI-TOD+ xview, the AI-TOD-v2 shares the same images with AI-TOD. If you want to use AI-TOD-v2, the simplest way is to download the AI-TOD's images and AI-TOD-v2's annotations from the above links.

from ai-tod.

hytel avatar hytel commented on July 20, 2024

Yup, I did. But as I say, I would like the AI-TOD V2 + xView dataset merged (because it's a larger dataset!) as you point out in your github page and thus the Python tool described above. The problem, is the tool above doesn't produce the COMBINED JSON annotations file does it? I do have the geojson from xView. I do have the JSON annotations for AI-TOD V2 in the link above. I can run your Python script and produce what appears to be a COMBINED AI-TOD V2 + xView dataset chipped to subimage_size x subimage_size. The problem is there is no corresponding JSON annotations file describing this new full set. But, this JSON annotations file is needed for the next step: Training on this new COMBINED dataset, right?

from ai-tod.

Chasel-Tsui avatar Chasel-Tsui commented on July 20, 2024

Yes, the provided tool cannot generate a combined AI-TOD V2 + xView. It is interesting to merge the AI-TOD V2 with xview to get a larger dataset but you need to write new codes for that.

from ai-tod.

hytel avatar hytel commented on July 20, 2024

Ok, now I'm really confused. At the top of your main Github page, I read the following:

"[Dataset] Please download the xView trainig set and AI-TOD_wo_xview to construct the complete AI-TOD dataset!"

All I'm trying to do is exactly that! I download both AI-TOD (v2 annotations) and xView training set and I'm trying to use the exact script you mention above to make in your words: "the complete AI-TOD dataset!". Right ?????

from ai-tod.

Chasel-Tsui avatar Chasel-Tsui commented on July 20, 2024

I mean there is no need to use the generation tool to generate images or annotations if you just want to use AI-TOD or v2, part of the xview is already included in the AI-TOD series, you can directly download images and annotations from the above mentioned links.
But as you mentioned, if you want to generate AI-TOD+xview, this repo will not be helpful for you since AI-TOD+xview is totally a new dataset different from our published datasets.

from ai-tod.

hytel avatar hytel commented on July 20, 2024

Confused again. You say to get there's AITOD and xView. And you need the tool to create the full set. But, somehow "part of the xview is already included" just in AITOD? Which part? Where is this explained? My impression is they are separate, and you have to combine them using the tool provided?

from ai-tod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.