Skip to content

Commit b525992

Browse files
committed
Merge branch 'controlnet-union' of https://github.com/hlky/diffusers into controlnet-union
2 parents 4755672 + d4b0108 commit b525992

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
>>> from diffusers.models.controlnets import ControlNetUnionInput
7474
>>> from diffusers.utils import load_image
7575
>>> import torch
76+
7677
>>> prompt = "A cat"
7778
>>> # download an image
7879
>>> image = load_image(
@@ -82,9 +83,7 @@
8283
>>> controlnet = ControlNetUnionModel.from_pretrained(
8384
... "xinsir/controlnet-union-sdxl-1.0", torch_dtype=torch.float16
8485
... )
85-
>>> vae = AutoencoderKL.from_pretrained(
86-
... "madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16
87-
... )
86+
>>> vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
8887
>>> pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
8988
... "stabilityai/stable-diffusion-xl-base-1.0",
9089
... controlnet=controlnet,

0 commit comments

Comments
 (0)