From d1274872aa46cd694085ddc7272f6288cfe8f303 Mon Sep 17 00:00:00 2001 From: HunMinKim <144449115+hunminkim98@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:57:10 +0900 Subject: [PATCH] modify frame range from max to min (#138) --- Pose2Sim/triangulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pose2Sim/triangulation.py b/Pose2Sim/triangulation.py index 55bb070..4f6958b 100644 --- a/Pose2Sim/triangulation.py +++ b/Pose2Sim/triangulation.py @@ -764,7 +764,7 @@ def triangulate_all(config_dict): json_files_names = [sort_stringlist_by_last_number(js) for js in json_files_names] # frame range selection - f_range = [[0,max([len(j) for j in json_files_names])] if frame_range==[] else frame_range][0] + f_range = [[0,min([len(j) for j in json_files_names])] if frame_range==[] else frame_range][0] frame_nb = f_range[1] - f_range[0] # Check that camera number is consistent between calibration file and pose folders