Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
714bfed8
Unverified
Commit
714bfed8
authored
Aug 11, 2023
by
Steven Liu
Committed by
GitHub
Aug 11, 2023
Browse files
[docs] Fix ControlNet SDXL docstring (#4582)
fix
parent
d5983a67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py
...ffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py
+2
-2
No files found.
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py
View file @
714bfed8
...
@@ -81,8 +81,8 @@ EXAMPLE_DOC_STRING = """
...
@@ -81,8 +81,8 @@ EXAMPLE_DOC_STRING = """
... "diffusers/controlnet-canny-sdxl-1.0", torch_dtype=torch.float16
... "diffusers/controlnet-canny-sdxl-1.0", torch_dtype=torch.float16
... )
... )
>>> vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
>>> vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
>>> pipe = StableDiffusionControlNetPipeline.from_pretrained(
>>> pipe = StableDiffusion
XL
ControlNetPipeline.from_pretrained(
... "stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet, torch_dtype=torch.float16
... "stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet,
vae=vae,
torch_dtype=torch.float16
... )
... )
>>> pipe.enable_model_cpu_offload()
>>> pipe.enable_model_cpu_offload()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment