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")