docs(t2i): add Qwen-Image example to text-to-image best practice - #1768
Merged
Merged
Conversation
Yunnglin
approved these changes
Sep 29, 2026
Yunnglin
left a comment
Collaborator
There was a problem hiding this comment.
LGTM — thanks for the clean, well-scoped docs addition (closes #980).
Verified against the diffusers QwenImagePipeline docs and our source:
- num_inference_steps=50 and true_cfg_scale=4.0 match the pipeline defaults;
- guidance_scale is indeed a no-op for this pipeline; CFG correctly uses true_cfg_scale + negative_prompt;
- the true_cfg_scale / negative_prompt passthrough works via generation_config (GenerateConfig extra=allow -> model_extra -> Text2ImageAPI.generate). Because a non-empty generation_config is provided, our default guidance_scale=9.0 is not injected, so the example is safe as written.
Pushed one small follow-up commit (ba5952e) adding the Qwen-Image Technical Report as reference [6] in both zh/en, plus the matching inline [6] marker in the zh intro, so Qwen-Image is cited consistently with FLUX/HiDream. CI is green — merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The text-to-image best practice (
t2i_eval.md) only covers FLUX.1-dev and HiDream-I1-Dev. Qwen-Image is the major domestic open-source text-to-image model, but users have no in-repo example for evaluating it with EvalScope.This PR adds a Qwen-Image example (zh + en) to the best practice doc, following the existing FLUX.1-dev pattern.
Changes
docs/zh/best_practice/t2i_eval.md: Qwen-Image example (Qwen/Qwen-Image,QwenImagePipeline, bfloat16, EvalMuse)docs/en/best_practice/t2i_eval.md: same example in EnglishNotes on the example parameters:
num_inference_steps=50follows the diffusersQwenImagePipelinedefault.guidance_scale; classifier-free guidance usestrue_cfg_scale+negative_prompt, which are forwarded to the pipeline throughgeneration_config(GenerateConfigallows extra keys,Text2ImageAPIpassesmodel_extrathrough).Verification
ast.parse).Fixes #980