Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon authored Jan 26, 2024
1 parent be789ec commit 8b0b93d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sports2D/detect_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,6 @@ def json_to_csv(json_path, frame_rate, pose_model, interp_gap_smaller_than, filt
keypt = np.array(keypt)
# Make sure keypt is as large as the number of persons that need to be detected
if len(keypt) < nb_persons_to_detect:
# print('\n')
# print(nb_persons_to_detect)
# print(len(keypt))
# print(repr(keypt))
empty_keypt_to_add = np.concatenate( [[ np.zeros([keypoints_nb,3]) ]] * (nb_persons_to_detect-len(keypt)) )
keypt = [np.concatenate([keypt, empty_keypt_to_add]) if list(keypt)!=[] else empty_keypt_to_add][0]
if 'keyptpre' not in locals():
Expand Down

0 comments on commit 8b0b93d

Please sign in to comment.