Instructions to use InstantX/SD3-Controlnet-Canny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use InstantX/SD3-Controlnet-Canny with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("InstantX/SD3-Controlnet-Canny", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,11 +27,12 @@ from diffusers.utils.torch_utils import randn_tensor
|
|
| 27 |
import sys, os
|
| 28 |
sys.path.append('/path/diffusers/examples/community')
|
| 29 |
from pipeline_stable_diffusion_3_controlnet import StableDiffusion3CommonPipeline
|
|
|
|
| 30 |
# load pipeline
|
| 31 |
base_model = 'stabilityai/stable-diffusion-3-medium-diffusers'
|
| 32 |
pipe = StableDiffusion3CommonPipeline.from_pretrained(
|
| 33 |
base_model,
|
| 34 |
-
controlnet_list=['InstantX/SD3-Controlnet-
|
| 35 |
)
|
| 36 |
pipe.to('cuda:0', torch.float16)
|
| 37 |
prompt = 'Anime style illustration of a girl wearing a suit. A moon in sky. In the background we see a big rain approaching. text "InstantX" on image'
|
|
|
|
| 27 |
import sys, os
|
| 28 |
sys.path.append('/path/diffusers/examples/community')
|
| 29 |
from pipeline_stable_diffusion_3_controlnet import StableDiffusion3CommonPipeline
|
| 30 |
+
|
| 31 |
# load pipeline
|
| 32 |
base_model = 'stabilityai/stable-diffusion-3-medium-diffusers'
|
| 33 |
pipe = StableDiffusion3CommonPipeline.from_pretrained(
|
| 34 |
base_model,
|
| 35 |
+
controlnet_list=['InstantX/SD3-Controlnet-Canny']
|
| 36 |
)
|
| 37 |
pipe.to('cuda:0', torch.float16)
|
| 38 |
prompt = 'Anime style illustration of a girl wearing a suit. A moon in sky. In the background we see a big rain approaching. text "InstantX" on image'
|