[Diffusion] Make QwenImageLayered resolution configurable#20044
[Diffusion] Make QwenImageLayered resolution configurable#20044mickqian merged 2 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a limitation where the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly makes the resolution for QwenImageLayered configurable by replacing a hardcoded value with a parameter from the pipeline configuration. The associated TODO comments have also been removed. The changes are straightforward and achieve the intended goal, improving the flexibility of the pipeline while maintaining the existing default behavior.
|
/tag-and-rerun-ci |
|
user still can't specify (override) this from cli, am I understanding this correctly? if so, should we support it |
@mickqian Yes. I just added the missing cli support with a UT. |
|
/tag-and-rerun-ci |
|
@mickqian Nvidia CI passed and PR is approved, ready for merge — SGLDHelper bot |
|
well done |
Motivation
QwenImageLayeredBeforeDenoisingStagehardcodesresolution = 640instead of reading from the pipeline config.Modifications
Use
server_args.pipeline_config.resolutioninQwenImageLayeredBeforeDenoisingStage.forward()instead of hardcoded640. Remove resolved TODO comments.Default behavior unchanged (still 640). Users can now configure resolution via
QwenImageLayeredPipelineConfig.Accuracy Tests
Existing
qwen_image_layered_i2iCI test covers this code path.No model output changes, default resolution value remains 640.
Benchmarking and Profiling
N/A, no performance impact (config field read vs integer literal).
Checklist