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

Could not upload annotations for the CVAT for video format #1893

Closed
2 tasks done
azhavoro opened this issue Jul 13, 2020 · 0 comments · Fixed by #1898
Closed
2 tasks done

Could not upload annotations for the CVAT for video format #1893

azhavoro opened this issue Jul 13, 2020 · 0 comments · Fixed by #1898
Assignees
Labels
bug Something isn't working

Comments

@azhavoro
Copy link
Contributor

My actions before raising this issue

Expected Behaviour

The annotation file is uploaded sucessfully.

Current Behaviour

Server exception

Possible Solution

Steps to Reproduce (for bugs)

  1. Create multi-job task
  2. Try to upload annotations.zip

Context

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.08
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 19
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container
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 "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/django/cvat/apps/dataset_manager/task.py", line 741, in import_job_annotations
    job.import_annotations(f, importer)
  File "/home/django/cvat/apps/dataset_manager/task.py", line 546, in import_annotations
    self.create(task_data.data.slice(self.start_frame, self.stop_frame).serialize())
  File "/home/django/cvat/apps/dataset_manager/annotation.py", line 126, in slice
    for t in self.tracks if self._is_track_inside(t, start, stop)]
  File "/home/django/cvat/apps/dataset_manager/annotation.py", line 126, in <listcomp>
    for t in self.tracks if self._is_track_inside(t, start, stop)]
  File "/home/django/cvat/apps/dataset_manager/annotation.py", line 99, in _slice_track
    track, start, stop)
  File "/home/django/cvat/apps/dataset_manager/annotation.py", line 739, in get_interpolated_shapes
    shapes.extend(interpolate(prev_shape, shape))
  File "/home/django/cvat/apps/dataset_manager/annotation.py", line 715, in interpolate
    shapes = simple_interpolation(shape0, shape1)
  File "/home/django/cvat/apps/dataset_manager/annotation.py", line 456, in simple_interpolation
    diff = np.subtract(shape1["points"], shape0["points"])
numpy.core._exceptions.UFuncTypeError: ufunc 'subtract' did not contain a loop with signature matching types (dtype('<U6'), dtype('<U6')) -> dtype('<U6')

Next steps

You may join our Gitter channel for community support.

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