File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/diffusers/pipelines/controlnet Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 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(
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,
You can’t perform that action at this time.
0 commit comments