Skip to content

Commit

Permalink
[Fix] Fix type bug in keypoint_pck_accuracy (#2479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis committed Jun 26, 2023
1 parent ed79b17 commit a0ca076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmpose/evaluation/functional/keypoint_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def keypoint_pck_accuracy(pred: np.ndarray, gt: np.ndarray, mask: np.ndarray,
acc = np.array([_distance_acc(d, thr) for d in distances])
valid_acc = acc[acc >= 0]
cnt = len(valid_acc)
avg_acc = valid_acc.mean() if cnt > 0 else 0
avg_acc = valid_acc.mean() if cnt > 0 else 0.0
return acc, avg_acc, cnt


Expand Down

0 comments on commit a0ca076

Please sign in to comment.