Skip to content

Commit

Permalink
load visiblity from annotation file in datumaro format
Browse files Browse the repository at this point in the history
  • Loading branch information
jihyeonyi committed Oct 15, 2024
1 parent 94360b2 commit 80ad1dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit 80ad1dd

Please sign in to comment.