-
Notifications
You must be signed in to change notification settings - Fork 943
Add notebook for qwen-image #3176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: latest
Are you sure you want to change the base?
Add notebook for qwen-image #3176
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new notebook demonstrating text-to-image generation using the Qwen-Image model with OpenVINO. The notebook includes model conversion, optimization, and an interactive Gradio interface.
Key changes:
- Added Gradio helper for creating an interactive demo with prompt enhancement and multi-language support
- Added README documenting the notebook's purpose and contents
- Excluded the notebook from Docker-based CI testing
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| notebooks/qwen-image/gradio_helper.py | Implements Gradio UI with image generation logic, prompt enhancement for English/Chinese, and configurable parameters |
| notebooks/qwen-image/README.md | Documents the Qwen-Image notebook tutorial and installation instructions |
| .ci/ignore_treon_docker.txt | Adds qwen-image notebook to CI exclusion list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| return polish_prompt_en(input_prompt) | ||
|
|
Copilot
AI
Dec 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function doesn't handle the case when language detection returns neither 'zh' nor 'en', resulting in an implicit None return. Add a default case: after line 33, add else: return original_prompt or change line 31 to just else: to handle all non-Chinese prompts.
| return polish_prompt_en(input_prompt) | |
| return polish_prompt_en(input_prompt) | |
| else: | |
| return input_prompt |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
CVS-173999