Skip to content

Commit 751dbe7

Browse files
committed
doc-builder
1 parent e7eadad commit 751dbe7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def retrieve_latents(
8787
import torch
8888
import numpy as np
8989
from PIL import Image
90+
9091
prompt = "A cat"
9192
# download an image
9293
image = load_image(
@@ -99,9 +100,7 @@ def retrieve_latents(
99100
controlnet = ControlNetUnionModel.from_pretrained(
100101
"brad-twinkl/controlnet-union-sdxl-1.0-promax", torch_dtype=torch.float16
101102
)
102-
vae = AutoencoderKL.from_pretrained(
103-
"madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16
104-
)
103+
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
105104
pipe = StableDiffusionXLControlNetUnionInpaintPipeline.from_pretrained(
106105
"stabilityai/stable-diffusion-xl-base-1.0",
107106
controlnet=controlnet,

0 commit comments

Comments
 (0)