Spaces:
Runtime error
Runtime error
File size: 523 Bytes
602a280 b76be88 3fcd292 602a280 a3a4de0 602a280 b76be88 3fcd292 602a280 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import os
WEBUI_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
MODELS_DIR = os.path.join(WEBUI_DIR, "models")
SAM2_CONFIGS_DIR = os.path.join(WEBUI_DIR, "configs")
OUTPUT_DIR = os.path.join(WEBUI_DIR, "outputs")
OUTPUT_PSD_DIR = os.path.join(OUTPUT_DIR, "psd")
TEMP_DIR = os.path.join(WEBUI_DIR, "temp")
for dir_path in [MODELS_DIR,
SAM2_CONFIGS_DIR,
OUTPUT_DIR,
OUTPUT_PSD_DIR,
TEMP_DIR]:
os.makedirs(dir_path, exist_ok=True)
|