diff --git a/Pose2Sim/common.py b/Pose2Sim/common.py index 869e243..2f42b9a 100644 --- a/Pose2Sim/common.py +++ b/Pose2Sim/common.py @@ -230,7 +230,7 @@ def euclidean_distance(q1, q2): q2 = np.array(q2) dist = q2 - q1 - euc_dist = np.sqrt(np.sum( [d**2 for d in dist])) + euc_dist = np.sqrt(np.nansum( [d**2 for d in dist])) return euc_dist