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
ImportError: cannot import name 'StableDiffusion3ControlNetPipeline' from 'diffusers'
#3
by wsintra - opened
Using version = "0.30.0.dev0" of diffusers
Getting the error.
Traceback (most recent call last):
File "/Users/q/pythonDevelopments/sd3Diffuser/Sd3ControlNet.py", line 2, in
from diffusers import StableDiffusion3ControlNetPipeline
ImportError: cannot import name 'StableDiffusion3ControlNetPipeline' from 'diffusers'
Solved, just removed diffusers and reinstalled.
wsintra changed discussion status to closed