Skip to content

Commit

Permalink
minor fix for concision
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Jul 13, 2024
1 parent abc7af8 commit 9925d6d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Pose2Sim/triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,13 +805,7 @@ def triangulate_all(config_dict):

# Triangulation
if multi_person:
try:
nb_persons_to_detect = max(max(count_persons_in_json(os.path.join(poseTracked_dir, json_dirs_names[c], json_fname)) for json_fname in json_files_names[c]) for c in range(n_cams))
except:
try:
nb_persons_to_detect = max(max(count_persons_in_json(os.path.join(poseSync_dir, json_dirs_names[c], json_fname)) for json_fname in json_files_names[c]) for c in range(n_cams))
except:
nb_persons_to_detect = max(max(count_persons_in_json(os.path.join(pose_dir, json_dirs_names[c], json_fname)) for json_fname in json_files_names[c]) for c in range(n_cams))
nb_persons_to_detect = max(max(count_persons_in_json(os.path.join(pose_dir, json_dirs_names[c], json_fname)) for json_fname in json_files_names[c]) for c in range(n_cams))
else:
nb_persons_to_detect = 1

Expand Down

0 comments on commit 9925d6d

Please sign in to comment.