Run this model with HF Jobs
Run thibaud/controlnet-sd21 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/thibaud/controlnet-sd21. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/thibaud/controlnet-sd21 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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.