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

Dump annotations with frame step: Key error #1613

Closed
mkostiv opened this issue May 28, 2020 · 1 comment · Fixed by #1615
Closed

Dump annotations with frame step: Key error #1613

mkostiv opened this issue May 28, 2020 · 1 comment · Fixed by #1615
Labels
bug Something isn't working
Milestone

Comments

@mkostiv
Copy link

mkostiv commented May 28, 2020

Steps to reproduce:

  1. Create a task with frame step (5 in my case)
  2. Annotate a few images
  3. Dump annotations

git describe 0.2.0-750-g3f46258

image

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rq/worker.py", line 812, in perform_job
rv = job.perform()
File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 588, in perform
self._result = self._execute()
File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 594, in _execute
return self.func(*self.args, **self.kwargs)
File "/home/django/cvat/apps/dataset_manager/views.py", line 87, in export_task_annotations
return export_task(task_id, dst_format, server_url=server_url, save_images=False)
File "/home/django/cvat/apps/dataset_manager/views.py", line 62, in export_task
server_url=server_url, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 723, in export_task
save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 619, in export
exporter(dst_file, task_data, **options)
File "/home/django/cvat/apps/dataset_manager/formats/registry.py", line 35, in call
f_or_cls(*args, **kwargs)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 545, in _export_images
anno_callback=dump_as_cvat_annotation, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 517, in _export
anno_callback(f, task_data)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 178, in dump_as_cvat_annotation
for frame_annotation in annotations.group_by_frame(include_empty=True):
File "/home/django/cvat/apps/dataset_manager/bindings.py", line 259, in group_by_frame
get_frame(shape['frame']).labeled_shapes.append(
File "/home/django/cvat/apps/dataset_manager/bindings.py", line 234, in get_frame
frame_info = self._frame_info[idx]
KeyError: 1

@nmanovic nmanovic added the bug Something isn't working label May 28, 2020
@nmanovic nmanovic added this to To do in Dataset framework (Datumaro) via automation May 28, 2020
@nmanovic nmanovic modified the milestones: 1.1.0-beta, 1.0.0-release May 28, 2020
@nmanovic
Copy link
Contributor

@zhiltsov-max , do you think you can look at the issue tomorrow?

@zhiltsov-max zhiltsov-max linked a pull request May 29, 2020 that will close this issue
8 tasks
@nmanovic nmanovic modified the milestones: 1.0.0-release, 1.1.0-alpha Jun 2, 2020
Dataset framework (Datumaro) automation moved this from To do to Done Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants