Spaces:
Running
on
Zero
Running
on
Zero
import os | |
# Base directories | |
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
LOGS_DIR = os.path.join(BASE_DIR, "logs") | |
OUTPUT_DIR = os.path.join(BASE_DIR, "output") | |
# Model paths | |
EXTERNAL_MODELS_DIR = os.path.join(BASE_DIR, "external_models") | |
DEPTH_FM_DIR = os.path.join(EXTERNAL_MODELS_DIR, "depth-fm") | |
DEPTH_FM_CHECKPOINT = os.path.join(DEPTH_FM_DIR, "checkpoints/depthfm-v1.ckpt") # You will need to download the checkpoint manually. Here is the link: https://github.com/CompVis/depth-fm/tree/main/checkpoints | |
TANGO_FLUX_DIR = os.path.join(EXTERNAL_MODELS_DIR, "TangoFlux") | |
# Create required directories | |
os.makedirs(LOGS_DIR, exist_ok=True) | |
os.makedirs(OUTPUT_DIR, exist_ok=True) | |