Instructions to use thibaud/controlnet-sd21 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use thibaud/controlnet-sd21 with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("thibaud/controlnet-sd21") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Stable Diffusion XL Support
#40
by apiasecki - opened
I have tried to use ControlNet with Stable Diffusion XL 1.0 but I failed:
RuntimeError: mat1 and mat2 shapes cannot be multiplied (154x768 and 1024x320)
Using
controlnet = [
ControlNetModel.from_pretrained('thibaud/controlnet-sd21-canny-diffusers', torch_dtype=torch.float16),
]
pipe = StableDiffusionControlNetPipeline.from_pretrained(
'stabilityai/stable-diffusion-xl-base-1.0', controlnet=controlnet,
torch_dtype=torch.float16,
use_safetensors=True, variant="fp16",
)
Do you plan to make xl versions of your awesome controlnet? It would be really great.