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
3e35f56b
Unverified
Commit
3e35f56b
authored
Feb 03, 2025
by
Parag Ekbote
Committed by
GitHub
Feb 03, 2025
Browse files
Fix Documentation about Image-to-Image Pipeline (#10704)
Fix Doc Tutorial.
parent
537891e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/en/using-diffusers/img2img.md
docs/source/en/using-diffusers/img2img.md
+2
-2
No files found.
docs/source/en/using-diffusers/img2img.md
View file @
3e35f56b
...
@@ -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:
...
...
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