Skip to content

Conversation

@ErwanBeurienne
Copy link
Contributor

In some cases, poseEstimation returns entries with only NaN values in the output file. This causes unnecessary and time-consuming calculations in personAssociation when generating and testing all possible person combinations.

This PR updates the person_combinations() function to exclude entries where all pose_keypoints_2d are NaN, by adding a check to filter out persons (with all NaN keypoints) before processing.

Update person_combinations() to exclude entries with all NaN pose_keypoints_2d, preventing unnecessary combinations.
@davidpagnon
Copy link
Collaborator

The single-person mode will be removed soon (you will be asked whether you want 1, 2, more, or all detected people), but in the meantime, this looks good to me!

@davidpagnon davidpagnon merged commit deb5d4f into perfanalytics:main Jan 10, 2026
9 checks passed
@ErwanBeurienne
Copy link
Contributor Author

Great improvement for usability.
Thanks for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants