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

Export all images of a job even if no annotation is present #525

Closed
lostcontrol opened this issue Jun 27, 2019 · 7 comments · Fixed by #1479
Closed

Export all images of a job even if no annotation is present #525

lostcontrol opened this issue Jun 27, 2019 · 7 comments · Fixed by #1479
Assignees
Labels
Easy to fix The issue is easy to fix and probably it will be release in a next minor release enhancement New feature or request
Milestone

Comments

@lostcontrol
Copy link

We have images of static scenes taken with different exposure time, lighting conditions, etc. We annotate only one image of a given scene and then duplicate the information using a Python script to the other pictures of the same scene.

The problem is that at the moment CVAT only export in the XML images that have at least one annotation. In order to workaround this, we draw a point in the corner of the first picture and propagate it to the whole set of picture and later filter out the points annotations. It would be nice if CVAT would also export images with empty annotations.

Something like the following:

<image height="2050" id="58" name="001-001.png" width="2448">
  <box label="A" occluded="0" xbr="2063.41" xtl="1832.21" ybr="1577.37" ytl="1269.10" />
  <box label="B" occluded="0" xbr="827.76" xtl="540.04" ybr="1895.92" ytl="1572.24" />
</image>
<image height="2050" id="58" name="001-002.png" width="2448" />
<image height="2050" id="58" name="001-003.png" width="2448" />
<image height="2050" id="58" name="001-004.png" width="2448" />
@nmanovic nmanovic added Easy to fix The issue is easy to fix and probably it will be release in a next minor release enhancement New feature or request good first issue labels Jun 27, 2019
@nmanovic nmanovic added this to the Backlog milestone Jun 27, 2019
@nmanovic nmanovic added this to To do in Supporting popular annotation formats via automation Jun 27, 2019
@LukeAI
Copy link
Contributor

LukeAI commented Aug 13, 2019

Will this be implemented soon? Would be really useful for my use-case.

@olympus999
Copy link
Contributor

olympus999 commented Sep 3, 2019

I had the same need, I ended up getting the data from DB.
Example query:
"""select path, frame from cvatv2.public.engine_image where task_id = {task_id};""".format(task_id=task_id)

@nmanovic nmanovic modified the milestones: Backlog, 1.0.0 - Beta Oct 15, 2019
@benhoff
Copy link
Contributor

benhoff commented Oct 31, 2019

@LukeAI & @lostcontrol, which data format are you using? This would need to get implemented at the individual dumper level.

@LukeAI
Copy link
Contributor

LukeAI commented Oct 31, 2019

Yolo, so for an image with no annotations - an empty file should simply be exported. At the moment my workaround is a bash one liner to "touch" every annotation file that should be there.

@lostcontrol
Copy link
Author

We are using the CVAT XML format.

@nmanovic nmanovic added this to To do in Dataset framework (Datumaro) via automation Nov 20, 2019
@nmanovic
Copy link
Contributor

@zhiltsov-max , do you think the issue is possible to resolve using datumaro? Could you please post here a solution or advice?

@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Mar 21, 2020

It definitely can be done through Datumaro - just export task as dataset of the desired format in CVAT UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy to fix The issue is easy to fix and probably it will be release in a next minor release enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

6 participants