Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix datumaro keypoint loading #1644

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(<https://github.com/openvinotoolkit/datumaro/pull/1603>)

### Bug fixes
- Fix datumaro format to load visibility information from Points annotations
(<https://github.com/openvinotoolkit/datumaro/pull/1644>)

## Q4 2024 Release 1.9.1
### Enhancements
Expand Down
1 change: 1 addition & 0 deletions src/datumaro/plugins/data_formats/datumaro/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ def _load_annotations(self, item: Dict):
points,
label=label_id,
id=ann_id,
visibility=ann.get("visibility"),
attributes=attributes,
group=group,
object_id=object_id,
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/data_formats/datumaro/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ def fxt_test_datumaro_format_dataset():
},
),
Points(
[1, 2, 2, 0, 1, 1],
[1, 2, 0, 0, 1, 1],
label=0,
id=5,
z_order=4,
attributes={
"x": 1,
"y": "2",
},
visibility=[1, 0, 2],
),
Mask(
label=3,
Expand Down
Loading