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
b8ccb462
Unverified
Commit
b8ccb462
authored
Apr 30, 2024
by
Tolga Cangöz
Committed by
GitHub
Apr 30, 2024
Browse files
Fix CPU offload in docstring (#7827)
Fix cpu offload
parent
725ead2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py
...pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py
+3
-3
No files found.
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py
View file @
b8ccb462
...
...
@@ -89,8 +89,8 @@ EXAMPLE_DOC_STRING = """
... variant="fp16",
... use_safetensors=True,
... torch_dtype=torch.float16,
... )
.to("cuda")
>>> vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
.to("cuda")
... )
>>> vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
>>> pipe = StableDiffusionXLControlNetImg2ImgPipeline.from_pretrained(
... "stabilityai/stable-diffusion-xl-base-1.0",
... controlnet=controlnet,
...
...
@@ -98,7 +98,7 @@ EXAMPLE_DOC_STRING = """
... variant="fp16",
... use_safetensors=True,
... torch_dtype=torch.float16,
... )
.to("cuda")
... )
>>> 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