Skip to content

Commit

Permalink
Merge pull request #1 from felipe-parodi/fp-fix-coco-import-bug
Browse files Browse the repository at this point in the history
Fix COCO Dataset Loading for Invisible Keypoints
  • Loading branch information
felipe-parodi authored Dec 5, 2024
2 parents fff8761 + 23aba1e commit 8345ea5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sleap/io/format/coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def read(

if flag == 0:
# node not labeled for this instance
if (x, y) != (0, 0):
# If labeled but invisible, place the node at the coord
points[node] = Point(x, y, False)
continue

is_visible = flag == 2
Expand Down

0 comments on commit 8345ea5

Please sign in to comment.