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

Export annotation error for cuboid #1568

Closed
2 tasks done
azhavoro opened this issue May 20, 2020 · 0 comments · Fixed by #1577
Closed
2 tasks done

Export annotation error for cuboid #1568

azhavoro opened this issue May 20, 2020 · 0 comments · Fixed by #1577
Assignees
Labels
bug Something isn't working

Comments

@azhavoro
Copy link
Contributor

My actions before raising this issue

Export annotation for a task with cuboid shapes leads to a server exception for all formats except CVAT.

Expected Behaviour

Cuboid shapes should be ignored (discussed with Maxim).

Current Behaviour

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/mot.py", line 20, in _export
    extractor = CvatTaskDataExtractor(task_data, include_images=save_images)
  File "/home/django/cvat/apps/dataset_manager/bindings.py", line 425, in __init__
    dm_anno = self._read_cvat_anno(frame_data, task_data)
  File "/home/django/cvat/apps/dataset_manager/bindings.py", line 522, in _read_cvat_anno
    raise Exception("Unknown shape type '%s'" % shape_obj.type)
Exception: Unknown shape type 'cuboid'

Possible Solution

Filter unsupported shapes

Steps to Reproduce (for bugs)

  1. Create a new cuboid shape
  2. Try to dump in COCO format

Context

Your Environment

  • Git hash commit (git log -1): 42fb305
  • Docker version docker version (e.g. Docker 17.0.05): 19.03.08
  • Are you using Docker Swarm or Kubernetes? no
  • Operating System and version (e.g. Linux, Windows, MacOS): ubuntu 18.04
  • 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.

@azhavoro azhavoro added the bug Something isn't working label May 20, 2020
@zhiltsov-max zhiltsov-max linked a pull request May 21, 2020 that will close this issue
8 tasks
@coderabbitai coderabbitai bot mentioned this issue Jul 12, 2024
7 tasks
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