Skip to content

Commit fb99712

Browse files
committed
docs
1 parent 7db64a1 commit fb99712

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/source/en/api/pipelines/sana_sprint.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ image.save("sana.png")
8989
Users can tweak the `max_timesteps` value for experimenting with the visual quality of the generated outputs. The default `max_timesteps` value was obtained with an inference-time search process. For more details about it, check out the paper.
9090

9191
## Image to Image
92+
9293
The [`SanaSprintImg2ImgPipeline`] is a pipeline for image-to-image generation. It takes an input image and a prompt, and generates a new image based on the input image and the prompt.
9394

9495
```py
@@ -105,9 +106,13 @@ pipe = SanaSprintImg2ImgPipeline.from_pretrained(
105106
torch_dtype=torch.bfloat16)
106107
pipe.to("cuda")
107108

108-
image = pipe(prompt="a cute pink bear",
109-
image=image,
110-
strength=0.5, height=832, width=480).images[0]
109+
image = pipe(
110+
prompt="a cute pink bear",
111+
image=image,
112+
strength=0.5,
113+
height=832,
114+
width=480
115+
).images[0]
111116
image[0].save("output.png")
112117
```
113118

0 commit comments

Comments
 (0)