Skip to content

Commit 5937e11

Browse files
authored
[docs] small corrections to the example in the Qwen docs (#12068)
* up * up
1 parent 9c1d4e3 commit 5937e11

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
# QwenImage
1616

17-
<!-- TODO: update this section when model is out -->
17+
Qwen-Image from the Qwen team is an image generation foundation model in the Qwen series that achieves significant advances in complex text rendering and precise image editing. Experiments show strong general capabilities in both image generation and editing, with exceptional performance in text rendering, especially for Chinese.
18+
19+
Check out the model card [here](https://huggingface.co/Qwen/Qwen-Image) to learn more.
1820

1921
<Tip>
2022

@@ -28,6 +30,6 @@ Make sure to check out the Schedulers [guide](../../using-diffusers/schedulers)
2830
- all
2931
- __call__
3032

31-
## QwenImagePipeline
33+
## QwenImagePipelineOutput
3234

3335
[[autodoc]] pipelines.qwenimage.pipeline_output.QwenImagePipelineOutput

examples/dreambooth/README_qwen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ We provide several options for optimizing memory optimization:
122122
* `cache_latents`: When enabled, we will pre-compute the latents from the input images with the VAE and remove the VAE from memory once done.
123123
* `--use_8bit_adam`: When enabled, we will use the 8bit version of AdamW provided by the `bitsandbytes` library.
124124

125-
Refer to the [official documentation](https://huggingface.co/docs/diffusers/main/en/api/pipelines/qwen) of the `QwenImagePipeline` to know more about the models available under the SANA family and their preferred dtypes during inference.
125+
Refer to the [official documentation](https://huggingface.co/docs/diffusers/main/en/api/pipelines/qwenimage) of the `QwenImagePipeline` to know more about the models available under the SANA family and their preferred dtypes during inference.
126126

127127
## Using quantization
128128

src/diffusers/pipelines/qwenimage/pipeline_qwenimage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
>>> import torch
4646
>>> from diffusers import QwenImagePipeline
4747
48-
>>> pipe = QwenImagePipeline.from_pretrained("Qwen/QwenImage-20B", torch_dtype=torch.bfloat16)
48+
>>> pipe = QwenImagePipeline.from_pretrained("Qwen/Qwen-Image", torch_dtype=torch.bfloat16)
4949
>>> pipe.to("cuda")
5050
>>> prompt = "A cat holding a sign that says hello world"
5151
>>> # Depending on the variant being used, the pipeline call will slightly vary.
5252
>>> # Refer to the pipeline documentation for more details.
53-
>>> image = pipe(prompt, num_inference_steps=4, guidance_scale=0.0).images[0]
53+
>>> image = pipe(prompt, num_inference_steps=50).images[0]
5454
>>> image.save("qwenimage.png")
5555
```
5656
"""

0 commit comments

Comments
 (0)