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]
This commit is contained in:
David PAGNON 2024-04-17 09:41:58 +02:00 committed by GitHub
parent db8014c3f5
commit 3a9d405cae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,7 +178,7 @@ def sort_people(Q_kpt_old, Q_kpt):
# Compute distance between persons from one frame to another # Compute distance between persons from one frame to another
frame_by_frame_dist = [] frame_by_frame_dist = []
for comb in personsIDs_comb: 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 # sort correspondences by distance
minL, _, associated_tuples = min_with_single_indices(frame_by_frame_dist, personsIDs_comb) minL, _, associated_tuples = min_with_single_indices(frame_by_frame_dist, personsIDs_comb)