Unverified Commit 66356e7d authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

Correct inpainting controlnet docs (#3572)

parent ffa33d63
...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment