diff --git a/detection/utils.py b/detection/utils.py index c5c5fa6..1292e40 100644 --- a/detection/utils.py +++ b/detection/utils.py @@ -2,6 +2,7 @@ import os import oss2 def get_model(name): + os.makedirs(os.path.join(os.path.dirname(__file__), "model"), exist_ok=True) fn = os.path.join(os.path.dirname(__file__), "model", name) if os.path.exists(fn): return fn