Skip to content

Commit

Permalink
Caught another L2
Browse files Browse the repository at this point in the history
  • Loading branch information
cleong110 committed Jan 15, 2025
1 parent 4334fb8 commit 92ec8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pose_evaluation/metrics/distance_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def score(self, hypothesis: Pose, reference: Pose) -> float:
# Calculate the error
error = arrays[0] - arrays[1]

# for l2, we need to calculate the error for each point
if self.kind == "l2":
# for l2/euclidean, we need to calculate the error for each point
if self.kind == "euclidean":
# the last dimension is the 3D coordinates
error = ma.power(error, 2)
error = error.sum(axis=-1)
Expand Down

0 comments on commit 92ec8e0

Please sign in to comment.