Skip to content

Conversation

@kohya-ss
Copy link
Owner

Also adds Qwen-Image-Edit-Plus supporting for the metadata. Follow up for #673.

FurkanGozukara and others added 3 commits October 23, 2025 15:40
Adding new optional metadata parameters working great
…reso arg for resolution and support Qwen-Image-Edit-Plus natively
@kohya-ss kohya-ss requested a review from Copilot October 25, 2025 10:20
Copy link
Contributor

Copilot AI left a 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 support for explicit metadata architecture and resolution configuration, with specific enhancements for the Qwen-Image-Edit-Plus model. The changes allow users to specify custom architecture names and resolutions in model metadata, while providing sensible defaults based on model type.

Key changes:

  • Adds ARCH_QWEN_IMAGE_EDIT_PLUS and CUSTOM_ARCH_QWEN_IMAGE_EDIT_PLUS constants for distinguishing Edit-Plus variant
  • Introduces --metadata_reso and --metadata_arch CLI arguments for explicit metadata configuration
  • Implements architecture-specific default resolutions (1328x1328 for Qwen-Image, 1024x1024 for Qwen-Image-Edit, 1280x720 for others)

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/musubi_tuner/utils/sai_model_spec.py Adds Edit-Plus architecture constant, custom_arch parameter support, resolution parsing from strings, and architecture-specific resolution defaults
src/musubi_tuner/qwen_image_train_network.py Auto-sets custom_arch when edit_plus mode is enabled
src/musubi_tuner/qwen_image_train.py Passes metadata_reso and metadata_arch to build_metadata, with incorrect is_edit_plus parameter
src/musubi_tuner/hv_train_network.py Adds metadata_reso and metadata_arch CLI arguments and passes them to build_metadata
src/musubi_tuner/hv_train.py Passes metadata_reso and metadata_arch to build_metadata

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kohya-ss kohya-ss merged commit 38afbbd into main Oct 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants