Skip to content

Can't dump annotations with objects type is track from several jobs (annotation is created in all job). #3200

Closed
@MashaSS

Description

@MashaSS

My actions before raising this issue

  • Read/searched the docs
    Searched past issues

Expected Behaviour

  1. response_code == 202
  2. file was downloaded

Current Behaviour

Can't dump and raise ValueError:
File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/task.py", line 749, in export_task task.export(f, exporter, host=server_url, save_images=save_images) File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/task.py", line 631, in export exporter(dst_file, task_data, **options) File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/formats/registry.py", line 37, in __call__ f_or_cls(*args, **kwargs) File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/formats/cvat.py", line 557, in _export_video anno_callback=dump_as_cvat_interpolation, save_images=save_images) File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/formats/cvat.py", line 533, in _export anno_callback(f, task_data) File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/formats/cvat.py", line 381, in dump_as_cvat_interpolation for track in annotations.tracks: File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/bindings.py", line 311, in tracks for shape in tracked_shapes], File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/bindings.py", line 311, in <listcomp> for shape in tracked_shapes], File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/bindings.py", line 211, in _export_tracked_shape frame=self.abs_frame_id(shape["frame"]), File "/home/maria/Desktop/cvat_orig/cvat/cvat/apps/dataset_manager/bindings.py", line 106, in abs_frame_id raise ValueError("Unknown internal frame id %s" % relative_id) ValueError: Unknown internal frame id 10
It seems that CVAT incorrectly merges job annotations because the task has an annotation with frame 10 and 11 in database after creation of annotations in all jobs.

Possible Solution

Steps to Reproduce (for bugs)

  1. create task with several jobs:
  • 10 images
  • 3 overlap size
  • 6 segment size
  1. create rectangle/polygon/polylines/points (track) annotations in jobs
  2. dump CVAT for images 1.1 annotations
    (GET query /api/v1/tasks/1/annotations&format=CVAT for video 1.1)

Context

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS):
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container

Next steps

You may join our Gitter channel for community support.

Activity

zhiltsov-max

zhiltsov-max commented on May 24, 2021

@zhiltsov-max
Contributor

Related: #2890

changed the title [Bug] Can't dump annotations with objects type is track from several jobs (annotation is created in all job). Can't dump annotations with objects type is track from several jobs (annotation is created in all job). on Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Can't dump annotations with objects type is track from several jobs (annotation is created in all job). · Issue #3200 · cvat-ai/cvat