You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add sdxl controlnet reference community pipeline (#9893)
* Add reference_attn & reference_adain support for sdxl with other controlnet
* Update README.md
* Update README.md by replacing human example with a cat one
Replace human example with a cat one
* Replace default human example with a cat one
* Use example images from huggingface documentation-images repository
---------
Co-authored-by: Sayak Paul <[email protected]>
This pipeline uses the Reference Control and with ControlNet. Refer to the [Stable Diffusion ControlNet Reference](https://github.com/huggingface/diffusers/blob/main/examples/community/README.md#stable-diffusion-controlnet-reference) and [Stable Diffusion XL Reference](https://github.com/huggingface/diffusers/blob/main/examples/community/README.md#stable-diffusion-xl-reference) sections for more information.
2690
+
2691
+
```py
2692
+
from diffusers import ControlNetModel, AutoencoderKL
2693
+
from diffusers.schedulers import UniPCMultistepScheduler
2694
+
from diffusers.utils import load_image
2695
+
import numpy as np
2696
+
import torch
2697
+
2698
+
import cv2
2699
+
fromPILimport Image
2700
+
2701
+
from .stable_diffusion_xl_controlnet_reference import StableDiffusionXLControlNetReferencePipeline
0 commit comments