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
Moe A commited on
Commit ·
c87ce8b
1
Parent(s): c921dd7
update readme
Browse files
README.md
CHANGED
|
@@ -6,7 +6,20 @@ license_link: LICENSE
|
|
| 6 |
|
| 7 |
This is a simple port of stabilityai/stable-diffusion-3.5-large-controlnet-depth for compatibility with the diffusers library.
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
pip install diffusers
|
|
|
|
|
|
|
|
|
|
| 11 |
cd diffusers
|
| 12 |
-
python scripts/convert_sd3_controlnet_to_diffusers.py --checkpoint_path "models/sd3.5_large_controlnet_depth.safetensors" --output_path "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
This is a simple port of stabilityai/stable-diffusion-3.5-large-controlnet-depth for compatibility with the diffusers library.
|
| 8 |
|
| 9 |
+
Check out [https://github.com/visibl-ai/sd3.5-controlnets](https://github.com/visibl-ai/sd3.5-controlnets) for use.
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
apt update && apt install git-lfs
|
| 13 |
pip install diffusers
|
| 14 |
+
pip install -U "huggingface_hub[cli]"
|
| 15 |
+
git clone https://huggingface.com/moeadham/stable-diffusion-3.5-large-controlnet-depth-diffusers
|
| 16 |
+
git clone https://github.com/huggingface/diffusers.git
|
| 17 |
cd diffusers
|
| 18 |
+
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"
|
| 19 |
+
cd ../stable-diffusion-3.5-large-controlnet-depth-diffusers
|
| 20 |
+
huggingface-cli lfs-enable-largefiles .
|
| 21 |
+
git lfs track diffusion_pytorch_model.safetensors
|
| 22 |
+
git add .
|
| 23 |
+
git commit -m "add model"
|
| 24 |
+
git push origin main
|
| 25 |
+
```
|