Instructions to use alimama-creative/SD3-Controlnet-Inpainting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alimama-creative/SD3-Controlnet-Inpainting with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("alimama-creative/SD3-Controlnet-Inpainting", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -77,10 +77,10 @@ pipe.to("cuda")
|
|
| 77 |
|
| 78 |
# Load image
|
| 79 |
image = load_image(
|
| 80 |
-
"https://huggingface.co/alimama-creative/SD3-Controlnet-Inpainting/
|
| 81 |
)
|
| 82 |
mask = load_image(
|
| 83 |
-
"https://huggingface.co/alimama-creative/SD3-Controlnet-Inpainting/
|
| 84 |
)
|
| 85 |
|
| 86 |
# Set args
|
|
|
|
| 77 |
|
| 78 |
# Load image
|
| 79 |
image = load_image(
|
| 80 |
+
"https://huggingface.co/alimama-creative/SD3-Controlnet-Inpainting/resolve/main/images/prod.png"
|
| 81 |
)
|
| 82 |
mask = load_image(
|
| 83 |
+
"https://huggingface.co/alimama-creative/SD3-Controlnet-Inpainting/resolve/main/images/mask.jpeg"
|
| 84 |
)
|
| 85 |
|
| 86 |
# Set args
|