diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a2f7bc2..a8e64ae6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428) - Job assignee can not resolve an issue () - Create manifest with cvat/server docker container command () - Cannot assign a resource to a user who has an organization () +- Oriented bounding boxes broken with COCO format ss() ### Security - TDB diff --git a/cvat/apps/dataset_manager/bindings.py b/cvat/apps/dataset_manager/bindings.py index 82ef2ac4..2dc518cf 100644 --- a/cvat/apps/dataset_manager/bindings.py +++ b/cvat/apps/dataset_manager/bindings.py @@ -1747,6 +1747,7 @@ def import_dm_annotations(dm_dataset: dm.Dataset, instance_data: Union[ProjectDa elif ann.type != dm.AnnotationType.skeleton: points = ann.points + rotation = ann.attributes.pop('rotation', 0.0) # Use safe casting to bool instead of plain reading # because in some formats return type can be different # from bool / None @@ -1794,6 +1795,7 @@ def import_dm_annotations(dm_dataset: dm.Dataset, instance_data: Union[ProjectDa z_order=ann.z_order if ann.type != dm.AnnotationType.cuboid_3d else 0, group=group_map.get(ann.group, 0), source=source, + rotation=rotation, attributes=attributes, elements=elements, )) @@ -1818,6 +1820,7 @@ def import_dm_annotations(dm_dataset: dm.Dataset, instance_data: Union[ProjectDa points=points, z_order=ann.z_order if ann.type != dm.AnnotationType.cuboid_3d else 0, source=source, + rotation=rotation, attributes=attributes, )