1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Correct inpainting controlnet docs (#3572)

This commit is contained in:
Patrick von Platen
2023-05-26 12:02:30 +02:00
committed by GitHub
parent ffa33d631a
commit 66356e7dd5

View File

@@ -89,14 +89,12 @@ EXAMPLE_DOC_STRING = """
... "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,