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

Cannot export Datumaro 1.0 #8115

Open
2 tasks done
ChristianIngwersen opened this issue Jul 3, 2024 · 4 comments
Open
2 tasks done

Cannot export Datumaro 1.0 #8115

ChristianIngwersen opened this issue Jul 3, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ChristianIngwersen
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

From the web UI, i.e. app.cvat.ai, export either a project, task or job to the Datumaro format.

Expected Behavior

Functional export

Possible Solution

No response

Context

When trying to export from the web GUI to the Datumaro format I get a NotImplementedError.

It works fine exporting to CVAT for video, but would prefer the json format from Datumaro. The project contains videos with 1 bbox and 2 skeleton annotations.
image

Environment

Web app through app.cvat.ai
@ChristianIngwersen ChristianIngwersen added the bug Something isn't working label Jul 3, 2024
@zhiltsov-max
Copy link
Contributor

Hi, skeletons are not supported in the Datumaro format yet. Consider using COCO Person Keypoints instead if you want a json output, it's more or less similar.

@zhiltsov-max zhiltsov-max added enhancement New feature or request and removed bug Something isn't working labels Jul 5, 2024
@ChristianIngwersen
Copy link
Author

Hi, skeletons are not supported in the Datumaro format yet. Consider using COCO Person Keypoints instead if you want a json output, it's more or less similar.

Hi @zhiltsov-max thanks for the answer. The "issue" is that I have both skeleton and bbox annotations. I guess COCO Keypoints wont work then?

@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Jul 5, 2024

It's not simple at the moment, but here is what is available now. Suppose you have a CVAT task with 2 labels: "skeleton" and "skeleton_bbox". There are several options:

  1. Group corresponding skeletons and boxes using the "Group annotations" tool in UI, then export as COCO keypoints. You can check current groups by using the group coloring button.
    Screenshot from 2024-07-05 13-37-10
    Screenshot from 2024-07-05 13-38-11

COCO Keypoints will include bbox information in the "bbox" field, if the boxes are grouped with skeletons. If you parse the resulting annotations with Datumaro, these boxes will be parsed as separate annotations automatically. Keep in mind that you will have no simple way to import this back together if it's needed later, so a backup may be useful.

  1. You can export boxes and skeletons separately in different formats (e.g. COCO for boxes, COCO person keypoints for skeletons), then merge them using some tool (e.g. Datumaro). Note that this way Datumaro will produce bbox annotations for each skeleton parsed as well, but this bbox will be constructed just from the skeleton points, if saved without groups, so you'll need to deduplicate the boxes.

  2. Export in CVAT for * format. You'll probably need to write a custom parser, but you'll have an option to import the results back.

  3. Get task/job annotations from the server as the UI does. It will also be a json, but it will require some postprocessing to become useful.

Related: #7501, #6963

@ChristianIngwersen
Copy link
Author

Thanks! I'll try to investigate

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

No branches or pull requests

3 participants