Instructions to use moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
|
Download README.md from moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers/resolve/main/README.md
- Command line
-
hf download hf://moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers/README.md
-
curl -L -o README.md https://huggingface.co/moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers/resolve/main/README.md
1.01 kB
| license: other | |
| license_name: stabilityai-ai-community | |
| license_link: LICENSE | |
| This is a simple port of stabilityai/stable-diffusion-3.5-large-controlnet-depth for compatibility with the diffusers library. | |
| Check out [https://github.com/visibl-ai/sd3.5-controlnets](https://github.com/visibl-ai/sd3.5-controlnets) for use. | |
| ```bash | |
| apt update && apt install git-lfs | |
| pip install diffusers | |
| pip install -U "huggingface_hub[cli]" | |
| git clone https://huggingface.com/moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers | |
| git clone https://github.com/huggingface/diffusers.git | |
| cd diffusers | |
| python scripts/convert_sd3_controlnet_to_diffusers.py --checkpoint_path "../models/sd3.5_large_controlnet_depth.safetensors" --output_path "../stable-diffusion-3.5-large-controlnet-depth-diffusers" | |
| cd ../stable-diffusion-3.5-large-controlnet-depth-diffusers | |
| huggingface-cli lfs-enable-largefiles . | |
| git lfs track diffusion_pytorch_model.safetensors | |
| git add . | |
| git commit -m "add model" | |
| git push origin main | |
| ``` |