This commit is contained in:
Qing
2024-01-05 15:38:34 +08:00
parent a95dd10ceb
commit cc06f30e9a
6 changed files with 41 additions and 19 deletions

View File

@@ -84,3 +84,4 @@ def setup_model_dir(model_dir: Path):
if not model_dir.exists():
logger.info(f"Create model directory: {model_dir}")
model_dir.mkdir(exist_ok=True, parents=True)
return model_dir