Unverified Commit 3e35f56b authored by Parag Ekbote's avatar Parag Ekbote Committed by GitHub
Browse files

Fix Documentation about Image-to-Image Pipeline (#10704)

Fix Doc Tutorial.
parent 537891e6
...@@ -461,12 +461,12 @@ Chain it to an upscaler pipeline to increase the image resolution: ...@@ -461,12 +461,12 @@ Chain it to an upscaler pipeline to increase the image resolution:
from diffusers import StableDiffusionLatentUpscalePipeline from diffusers import StableDiffusionLatentUpscalePipeline
upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained( upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained(
"stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16, variant="fp16", use_safetensors=True "stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16, use_safetensors=True
) )
upscaler.enable_model_cpu_offload() upscaler.enable_model_cpu_offload()
upscaler.enable_xformers_memory_efficient_attention() upscaler.enable_xformers_memory_efficient_attention()
image_2 = upscaler(prompt, image=image_1, output_type="latent").images[0] image_2 = upscaler(prompt, image=image_1).images[0]
``` ```
Finally, chain it to a super-resolution pipeline to further enhance the resolution: Finally, chain it to a super-resolution pipeline to further enhance the resolution:
......
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