Spaces:
Running
Running
File size: 599 Bytes
602a280 b76be88 3fcd292 cbd23da 602a280 a3a4de0 602a280 b76be88 3fcd292 cbd23da 602a280 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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")
TEMP_OUT_DIR = os.path.join(TEMP_DIR, "out")
for dir_path in [MODELS_DIR,
SAM2_CONFIGS_DIR,
OUTPUT_DIR,
OUTPUT_PSD_DIR,
TEMP_DIR,
TEMP_OUT_DIR]:
os.makedirs(dir_path, exist_ok=True)
|