Spaces:
Runtime error
Runtime error
Download app.py from absss/stable-diffusion-depth2img: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/absss/stable-diffusion-depth2img/resolve/main/app.py
- Command line
-
hf download hf://spaces/absss/stable-diffusion-depth2img/app.py
-
curl -L -o app.py https://huggingface.co/spaces/absss/stable-diffusion-depth2img/resolve/main/app.py
721 Bytes
| from os import system | |
| system('git clone https://huggingface.co/stabilityai/stable-diffusion-2-depth && cd stable-diffusion-2-depth && git lfs fetch && git lfs pull') | |
| system('pip install -e stablediffusion') | |
| system('curl -LJ https://github.com/isl-org/DPT/releases/download/1_0/dpt_hybrid-midas-501f0c75.pt --create-dirs -o stablediffusion/midas_models/dpt_hybrid-midas-501f0c75.pt') | |
| system('curl -LJ https://github.com/isl-org/DPT/releases/download/1_0/dpt_large-midas-2f21e586.pt --create-dirs -o stablediffusion/midas_models/dpt_large-midas-2f21e586.pt') | |
| system('cd stablediffusion && python scripts/gradio/depth2img.py configs/stable-diffusion/v2-midas-inference.yaml ../stable-diffusion-2-depth/512-depth-ema.ckpt') | |