Spaces:
Runtime error
Runtime error
Download config.py from FQiao/SoundingStreet: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/spaces/FQiao/SoundingStreet/resolve/main/config.py
- Command line
-
hf download hf://spaces/FQiao/SoundingStreet/config.py
-
curl -L -o config.py https://huggingface.co/spaces/FQiao/SoundingStreet/resolve/main/config.py
692 Bytes
| 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) | |