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 export polygons as COCO dataset #1387

Closed
zhiltsov-max opened this issue Apr 9, 2020 · 0 comments · Fixed by #1388
Closed

Can't export polygons as COCO dataset #1387

zhiltsov-max opened this issue Apr 9, 2020 · 0 comments · Fixed by #1388

Comments

@zhiltsov-max
Copy link
Contributor

Version 39eb9c5

Exporting the task with polygons as COCO dataset can lead to 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/dataset_manager/task.py", line 273, in export_project
server_url=server_url)
File "/home/django/cvat/apps/dataset_manager/task.py", line 152, in export
self._dataset.export_project(converter=converter, save_dir=save_dir)
File "/home/django/datumaro/datumaro/components/project.py", line 689, in export_project
converter(dataset, save_dir)
File "/home/django/datumaro/datumaro/plugins/coco_format/converter.py", line 607, in call
converter.convert()
File "/home/django/datumaro/datumaro/plugins/coco_format/converter.py", line 555, in convert
task_conv.save_annotations(item)
File "/home/django/datumaro/datumaro/plugins/coco_format/converter.py", line 362, in save_annotations
elem.update(self.convert_points_object(points))
File "/home/django/datumaro/datumaro/plugins/coco_format/converter.py", line 385, in convert_points_object
visibility = ann.visibility
AttributeError: 'Polygon' object has no attribute 'visibility'
@zhiltsov-max zhiltsov-max self-assigned this Apr 9, 2020
@zhiltsov-max zhiltsov-max added this to To do in Dataset framework (Datumaro) via automation Apr 9, 2020
zhiltsov-max added a commit that referenced this issue Apr 9, 2020
Dataset framework (Datumaro) automation moved this from To do to Done Apr 12, 2020
@zhiltsov-max zhiltsov-max linked a pull request Apr 12, 2020 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant