Skip to content

Commit 61d0606

Browse files
Fix cuboid conversion (#1577)
* Fix cuboid conversion * update changelog Co-authored-by: Nikita Manovich <[email protected]>
1 parent 42c5637 commit 61d0606

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4646
- Fixed an issue with large number of instances in instance mask (https://github.com/opencv/cvat/issues/1539)
4747
- Fixed full COCO dataset import error with conflicting labels in keypoints and detection (https://github.com/opencv/cvat/pull/1548)
4848
- Fixed COCO keypoints skeleton parsing and saving (https://github.com/opencv/cvat/issues/1539)
49+
- Fixed an error when exporting a task with cuboids to any format except CVAT (https://github.com/opencv/cvat/pull/1577)
4950
- `tf.placeholder() is not compatible with eager execution` exception for auto_segmentation (https://github.com/opencv/cvat/pull/1562)
5051
- Fixed a problem with mask to polygons conversion when polygons are too small (https://github.com/opencv/cvat/pull/1581)
5152

cvat/apps/dataset_manager/bindings.py

+2
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ def convert_attrs(label, cvat_attrs):
518518
x0, y0, x1, y1 = anno_points
519519
anno = datumaro.Bbox(x0, y0, x1 - x0, y1 - y0,
520520
label=anno_label, attributes=anno_attr, group=anno_group)
521+
elif shape_obj.type == ShapeType.CUBOID:
522+
continue # Datumaro does not support cuboids
521523
else:
522524
raise Exception("Unknown shape type '%s'" % shape_obj.type)
523525

0 commit comments

Comments
 (0)