From f346ad49d99a0afda369f75aa4b6996785532d16 Mon Sep 17 00:00:00 2001 From: jario Date: Fri, 2 Feb 2024 23:26:16 +0800 Subject: [PATCH] fix model_sync --- scripts/model_sync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/model_sync.py b/scripts/model_sync.py index 6967ee0..fd744c1 100644 --- a/scripts/model_sync.py +++ b/scripts/model_sync.py @@ -9,6 +9,8 @@ root_url = "https://download.amovlab.com/model/SpireCV-models/" model_list_url = root_url + "model-list.txt" root_path = os.path.expanduser("~") + "/SpireCV/models" print("MODEL PATH:", root_path) +if not os.path.exists(root_path): + os.makedirs(root_path) list_file = os.path.join(root_path, "model-list.txt")