From 979e03ad6d06f73a48ffa1cc48492972a8184b53 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Fri, 26 May 2023 11:56:10 +0200 Subject: [PATCH] Correct inpainting controlnet docs --- .../pipelines/controlnet/pipeline_controlnet_inpaint.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py b/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py index 83ddd51c02f7..57a0e42ccbf8 100644 --- a/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +++ b/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py @@ -89,14 +89,12 @@ ... "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.enable_model_cpu_offload() >>> # generate image >>> image = pipe( - ... "a beautiful man", + ... "a handsome man with ray-ban sunglasses", ... num_inference_steps=20, ... generator=generator, ... eta=1.0,