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
66356e7d
Unverified
Commit
66356e7d
authored
May 26, 2023
by
Patrick von Platen
Committed by
GitHub
May 26, 2023
Browse files
Correct inpainting controlnet docs (#3572)
parent
ffa33d63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py
...users/pipelines/controlnet/pipeline_controlnet_inpaint.py
+1
-3
No files found.
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py
View file @
66356e7d
...
@@ -89,14 +89,12 @@ EXAMPLE_DOC_STRING = """
...
@@ -89,14 +89,12 @@ EXAMPLE_DOC_STRING = """
... "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16
... "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16
... )
... )
>>> # speed up diffusion process with faster scheduler and memory optimization
>>> pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
>>> pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
>>> pipe.enable_model_cpu_offload()
>>> pipe.enable_model_cpu_offload()
>>> # generate image
>>> # generate image
>>> image = pipe(
>>> image = pipe(
... "a
beautiful man
",
... "a
handsome man with ray-ban sunglasses
",
... num_inference_steps=20,
... num_inference_steps=20,
... generator=generator,
... generator=generator,
... eta=1.0,
... eta=1.0,
...
...
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