From 3a9d405cae35bdb5ba4cb6b227123f872f6c00bd Mon Sep 17 00:00:00 2001 From: David PAGNON Date: Wed, 17 Apr 2024 09:41:58 +0200 Subject: [PATCH] forgot a debugging thing L181: frame_by_frame_dist += [euclidean_distance(Q_kpt_old[comb[0]][:3],Q_kpt[comb[1]][:3])] --> removed the [:3] --- Pose2Sim/triangulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pose2Sim/triangulation.py b/Pose2Sim/triangulation.py index 9348a30..6f1ea14 100644 --- a/Pose2Sim/triangulation.py +++ b/Pose2Sim/triangulation.py @@ -178,7 +178,7 @@ def sort_people(Q_kpt_old, Q_kpt): # Compute distance between persons from one frame to another frame_by_frame_dist = [] for comb in personsIDs_comb: - frame_by_frame_dist += [euclidean_distance(Q_kpt_old[comb[0]][:3],Q_kpt[comb[1]][:3])] + frame_by_frame_dist += [euclidean_distance(Q_kpt_old[comb[0]],Q_kpt[comb[1]])] # sort correspondences by distance minL, _, associated_tuples = min_with_single_indices(frame_by_frame_dist, personsIDs_comb)