From dc377afa39bbe70187957fbd8f8550ef8e85c56a Mon Sep 17 00:00:00 2001 From: Maxim Zhiltsov Date: Thu, 21 May 2020 16:04:04 +0300 Subject: [PATCH 1/2] Fix cuboid conversion --- cvat/apps/dataset_manager/bindings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cvat/apps/dataset_manager/bindings.py b/cvat/apps/dataset_manager/bindings.py index 04a4be041158..d8152086b496 100644 --- a/cvat/apps/dataset_manager/bindings.py +++ b/cvat/apps/dataset_manager/bindings.py @@ -518,6 +518,8 @@ def convert_attrs(label, cvat_attrs): x0, y0, x1, y1 = anno_points anno = datumaro.Bbox(x0, y0, x1 - x0, y1 - y0, label=anno_label, attributes=anno_attr, group=anno_group) + elif shape_obj.type == ShapeType.CUBOID: + continue # Datumaro does not support cuboids else: raise Exception("Unknown shape type '%s'" % shape_obj.type) From 7acd551ac9b1ee4bc81a9bcf32b599cc95f1ce7d Mon Sep 17 00:00:00 2001 From: Maxim Zhiltsov Date: Fri, 22 May 2020 11:47:19 +0300 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e9054947f2a..bb9b38777816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue with large number of instances in instance mask (https://github.com/opencv/cvat/issues/1539) - Fixed full COCO dataset import error with conflicting labels in keypoints and detection (https://github.com/opencv/cvat/pull/1548) - Fixed COCO keypoints skeleton parsing and saving (https://github.com/opencv/cvat/issues/1539) +- Fixed an error when exporting a task with cuboids to any format except CVAT (https://github.com/opencv/cvat/pull/1577) ### Security -