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

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

Closed
1 of 2 tasks
MashaSS opened this issue May 17, 2021 · 1 comment · Fixed by #5250
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@MashaSS
Copy link
Contributor

MashaSS commented May 17, 2021

My actions before raising this issue

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.

@zhiltsov-max zhiltsov-max added the bug Something isn't working label May 24, 2021
@zhiltsov-max
Copy link
Contributor

Related: #2890

@nmanovic nmanovic 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). Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants