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 to upload a task from a video with annotations? #4325

Closed
evekeen opened this issue Feb 10, 2022 · 8 comments
Closed

How to upload a task from a video with annotations? #4325

evekeen opened this issue Feb 10, 2022 · 8 comments

Comments

@evekeen
Copy link
Contributor

evekeen commented Feb 10, 2022

Use case:

  • There is a video file with an object that needs to be annotated with a bbox
  • Person A and Person B both have independent local CVAT instances
  • Person A creates a task from the video file and makes annotations
  • Person A dumped the annotations into a file (e.g. in COCO format)
  • Person B imports the annotations to their instance for review and corrections

There is a way of importing annotations along with a video through CLI/REST, although the annotations have frame_XXX references, and the upload only works with a set of images.
Is there a way of creating a task via CLI using a video file and the dumped annotations?

So far I managed to split video into images first and then upload as image sequence. But then zoom always resets in the UI, since it interprets the task as per-image, which actually is not true. And I cannot guarantee that my image sequence is the same as it was at the other person instance.

@bsekachev
Copy link
Member

Hi, What you need is probably backup/restore of a task.
Please, refer to user guide: https://openvinotoolkit.github.io/cvat/docs/manual/advanced/backup/

You can disable "Reset zoom" (enabled by default for images):
image

There is related bug #4289, but generally it works

@evekeen
Copy link
Contributor Author

evekeen commented Feb 11, 2022

Thank you for response! Can you share a latest version docker images with the backup feature? I'm not able to build them myself so far on my machine

@bsekachev
Copy link
Member

@evekeen

Why can't you build it? Usually we publish docker images when releases come.

@evekeen
Copy link
Contributor Author

evekeen commented Feb 13, 2022

@bsekachev its just tricky to set everything up on Mac with Apple processor in order to build.
BTW when I tried the feature on cvat.org, the image quality went significantly down after re-import. Is there a setting about keeping the image quality somewhere?

@bsekachev
Copy link
Member

@evekeen

I am not sure I understand what kind of re-import you are talking about. Could you please clarify the scenario? If it is true, it might be a bug, because I don't expect image quality degradation after any kind of import.

@evekeen
Copy link
Contributor Author

evekeen commented Feb 14, 2022

@bsekachev the scenario is following:

  1. Backup a task
  2. Import the task from the backup on the same instance
  3. Compare image quality of 2 tasks

In the imported task quality is significantly worse

@bsekachev
Copy link
Member

bsekachev commented Feb 14, 2022

@evekeen Are you able to provide a couple of screenshots with these images? If image quality is actually worse, better to submit a new issue with the scenario you provided and attach these screenshot, because as I told before, I suspect it is just a bug

@evekeen
Copy link
Contributor Author

evekeen commented Feb 22, 2022

@bsekachev I've created an issue: #4377

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

2 participants