diff --git a/process/batch_processing.py b/process/batch_processing.py index 539cbd3d2d9f3cefb00e565009c2f944daa58ee1..ce7791bdbcd06078b008497badb62930c4e93c55 100755 --- a/process/batch_processing.py +++ b/process/batch_processing.py @@ -903,7 +903,9 @@ class BatchProcessing: if not os.path.exists(save_process_path): os.makedirs(save_process_path) - for camn in range(1, self.nb_cam + 1): + + for camn in range(1, self.nb_cam + 1): + if not os.path.exists(save_process_paths[camn]): os.makedirs(save_process_paths[camn]) if 'only_save_process_history' in kwargs.keys() and kwargs['only_save_process_history']: diff --git a/process/dlc_postprocessing.py b/process/dlc_postprocessing.py index e991e3abecc374f78a0897092887b1def605b67e..ad01f81d03aa6efde713fc2ba18267b7c3dde47d 100755 --- a/process/dlc_postprocessing.py +++ b/process/dlc_postprocessing.py @@ -709,7 +709,7 @@ def reverse_processes_2d_points(skeleton2d: Dict[str, any], settings: Settings, crop_width, crop_height = width_img, height_img if 'crop' in process_functions: - csv_path = glob.glob(os.path.join(track_path, rec_names[main_camn], f'cam{camn}', '*' + obj_name + '-2d_points.csv')) + csv_path = glob.glob(os.path.join(track_path, rec_names[camn], f'cam{camn}', '*' + obj_name + '-2d_points.csv')) pts_csv = np.genfromtxt(csv_path[0], delimiter=',', skip_header=0, names=True)