[lora training] add caption dropout and aspect ratio buckets#14089
Open
linoytsaban wants to merge 5 commits into
Open
[lora training] add caption dropout and aspect ratio buckets#14089linoytsaban wants to merge 5 commits into
linoytsaban wants to merge 5 commits into
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YWYYQwMQo8A2HPBFD1qYoi
a539d74 to
975986d
Compare
Resize to cover the bucket then crop, instead of resizing to the exact bucket dimensions (which distorted images and made the crop a no-op). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YWYYQwMQo8A2HPBFD1qYoi
Apply the bucket-aware resize/crop to prior-preservation class images too (so they share the instance image's bucket), and add --bucket_no_upscale to pad images smaller than their bucket instead of upscaling them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YWYYQwMQo8A2HPBFD1qYoi
Add qwen-image and flux2-klein example tests covering --aspect_ratio_buckets (+ --bucket_no_upscale) and --caption_dropout. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YWYYQwMQo8A2HPBFD1qYoi
Collaborator
Author
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.

Adds aspect ratio bucket support to krea 2 and qwen image (aligned with bucketing that already exists flux 2) + bucketing fix and caption dropout support.
--caption_dropout): randomly replace an instance caption with""so that fraction trains unconditionally (improves CFG). Added to krea2, qwen-image, flux2-klein.--bucket_no_upscale: pad images smaller than their bucket instead of upscaling them.