fix model_sync

This commit is contained in:
jario 2024-02-02 23:26:16 +08:00
parent 29702bfd11
commit f346ad49d9
1 changed files with 2 additions and 0 deletions

View File

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