From 690c0acb639e750a42f9406ccdb1f452c199a77b Mon Sep 17 00:00:00 2001 From: Louis Dupont Date: Tue, 20 Jun 2023 16:48:58 +0300 Subject: [PATCH] fix --- src/super_gradients/common/environment/checkpoints_dir_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/super_gradients/common/environment/checkpoints_dir_utils.py b/src/super_gradients/common/environment/checkpoints_dir_utils.py index 8cc1f7cd10..e359f56503 100644 --- a/src/super_gradients/common/environment/checkpoints_dir_utils.py +++ b/src/super_gradients/common/environment/checkpoints_dir_utils.py @@ -37,7 +37,7 @@ def get_project_checkpoints_dir_path() -> Optional[str]: checkpoints_path = os.path.join(project_root_path, "checkpoints") if not os.path.exists(checkpoints_path): - os.makedirs(checkpoints_path) + os.makedirs(checkpoints_path, exist_ok=True) logger.info(f'A checkpoints directory was just created at "{checkpoints_path}". To work with another directory, please set "ckpt_root_dir"') return checkpoints_path