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

How do I upload a dataset in COCO format? #301

Open
martinkjlarsson opened this issue Dec 6, 2024 · 0 comments
Open

How do I upload a dataset in COCO format? #301

martinkjlarsson opened this issue Dec 6, 2024 · 0 comments
Assignees

Comments

@martinkjlarsson
Copy link

I cannot upload datasets in COCO format and only get "Error: Incorrect file format" in the dialog. The backend log reads:

2024-12-06 14:56:04.564 ERROR 7 --- [pool-5-thread-2] ai.basic.x1.util.DataFormatUtil          : convert file error:usage: script_ctl [-h] --mode {import,export} --src SRC --dst DST [--rps RPS]                  --fmt {coco,voc,labelme,kitti,kitti_like}script_ctl: error: argument --mode: invalid choice: 'upload' (choose from 'import', 'export')

I annotated two images from the Image Trial cat dataset and exported them in COCO format. (I changed the cat class to a polygon instead of bounding box.) Following the documentation, I created this zip: Image Trial-20241206144211.zip. I also tried other folder names etc, but could not get it working.

This may be a bug, but if not, the documentation must be improved. The upload dialog says "Get our open data or check documentations for data formats and upload guides." with a link to Upload Dataset. However, the link to the image dataset sample there is dead. The documentation in Upload Dataset and in Folder Structure seems to only cover the Xtreme1 format, or am I mistaken?

If someone can provide a correctly formatted zip or point out what I am doing wrong, I would happily contribute to the documentation.

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

3 participants