Skip to content

Commit

Permalink
Fix crash when nposes > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Larsson committed Feb 3, 2021
1 parent 39d29ac commit 655a354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pose_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def ParseOutputs(self, outputs):
def _parse_poses(self, outputs):
keypoints = outputs[0].reshape(-1, len(KEYPOINTS), 2)
keypoint_scores = outputs[1].reshape(-1, len(KEYPOINTS))
pose_scores = outputs[2]
pose_scores = outputs[2].flatten()
nposes = int(outputs[3][0])

# Convert the poses to a friendlier format of keypoints with associated
Expand Down

0 comments on commit 655a354

Please sign in to comment.