Fixed: Oriented bounding boxes broken with COCO format (#5219)

* Fixed: Oriented bounding boxes broken with COCO format

* Updated changelog
main
Boris Sekachev 3 years ago committed by GitHub
parent 82700f60da
commit bca5bb6cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -66,6 +66,7 @@ non-ascii paths while adding files from "Connected file share" (issue #4428)
- Job assignee can not resolve an issue (<https://github.com/opencv/cvat/pull/5167>)
- Create manifest with cvat/server docker container command (<https://github.com/opencv/cvat/pull/5172>)
- Cannot assign a resource to a user who has an organization (<https://github.com/opencv/cvat/pull/5218>)
- Oriented bounding boxes broken with COCO format ss(<https://github.com/opencv/cvat/pull/5219>)
### Security
- TDB

@ -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,
)

Loading…
Cancel
Save