Skip to content

Commit

Permalink
Merge branch 'bugfix/keypoints' into release/v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Sep 9, 2022
2 parents 39e7c51 + 78cd1c9 commit 30dd976
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eta/core/keypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def from_dict(cls, d):
name = d.get("name", None)
label = d.get("label", None)
confidence = d.get("confidence", None)
index = (d.get("index", None),)
index = d.get("index", None)
points = d.get("points", None)
tags = d.get("tags", None)

Expand Down Expand Up @@ -357,8 +357,7 @@ def offset_indexes(self, offset):
keypoints.offset_index(offset)

def clear_indexes(self):
"""Clears the ``index`` of all keypoints in the container.
"""
"""Clears the ``index`` of all keypoints in the container."""
for keypoints in self:
keypoints.clear_index()

Expand Down

0 comments on commit 30dd976

Please sign in to comment.