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

Wrong order of shapes in a track (keypoint annotations) #500

Closed
nmanovic opened this issue Jun 17, 2019 · 3 comments · Fixed by #667
Closed

Wrong order of shapes in a track (keypoint annotations) #500

nmanovic opened this issue Jun 17, 2019 · 3 comments · Fixed by #667
Assignees
Labels
bug Something isn't working

Comments

@nmanovic
Copy link
Contributor

My group is doing keypoint interpolation and we ran into a problem where half our tasks were failing to "Dump annotation" when the button on the cvat dashboard was used.

This was the error:

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/engine/annotation.py", line 121, in dump_task_data
    annotation.dump(file_path, scheme, host, query_params)
  File "/home/django/cvat/apps/engine/annotation.py", line 1412, in dump
    track, 0, db_task.size):
  File "/home/django/cvat/apps/engine/annotation.py", line 1118, in get_interpolated_shapes
    assert shape["frame"] > curr_frame
AssertionError

That is an assert in TrackManager.get_interpolated_shapes. The assert is in a loop where shapes of a track are being iterated through.

@ilouzl
Copy link
Contributor

ilouzl commented Dec 9, 2020

I'm getting the same error when trying to load "cvat for video" annotations into a task.
The task contains several jobs (video splits), but I noticed that if I add a new task without splitting the video to jobs, annotation load is successful (of course using the same video and annotation files).
I'm on version https://github.com/openvinotoolkit/cvat/releases/tag/v1.2.0-alpha

@bsekachev
Copy link
Member

@ilouzl

It would be helpful if you provide a video and annotations to stable reproducing the issue. I understand that they may be private. Just it would dramatically simplify issue reproducing and consequently fixing.

@ilouzl
Copy link
Contributor

ilouzl commented Dec 9, 2020

@bsekachev you're right.
Attached is a dummy video and annotations that raises the same error.
Archive.zip

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.

3 participants