未验证 提交 bca5bb6c 编写于 作者: B Boris Sekachev 提交者: GitHub

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

* Fixed: Oriented bounding boxes broken with COCO format

* Updated changelog
上级 82700f60
......@@ -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,
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册