From fc43f145c29142f22b83d7562b11b2daf9f30a1f Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 13 Dec 2022 13:28:09 +0000 Subject: [PATCH] if not --- aimodel/src/deeplabv3_plus_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aimodel/src/deeplabv3_plus_test.py b/aimodel/src/deeplabv3_plus_test.py index 8486e02..99a15e3 100755 --- a/aimodel/src/deeplabv3_plus_test.py +++ b/aimodel/src/deeplabv3_plus_test.py @@ -23,7 +23,8 @@ NUM_VAL_IMAGES = 50 DIR_OUTPUT=f"output/{datetime.utcnow().date().isoformat()}_deeplabv3plus_TEST" -os.makedirs(DIR_OUTPUT) +if not os.path.exists(DIR_OUTPUT): + os.makedirs(DIR_OUTPUT) logger.info("DeepLabv3+ TEST") logger.info(f"> DIR_OUTPUT {DIR_OUTPUT}")