Skip to content

Fixed an issue with abnormal training loss in Dreambooth Flux2.#12774

Closed
tcaimm wants to merge 2 commits intohuggingface:mainfrom
tcaimm:fix/dreambooth-flux2-img2img
Closed

Fixed an issue with abnormal training loss in Dreambooth Flux2.#12774
tcaimm wants to merge 2 commits intohuggingface:mainfrom
tcaimm:fix/dreambooth-flux2-img2img

Conversation

@tcaimm
Copy link
Copy Markdown
Contributor

@tcaimm tcaimm commented Dec 2, 2025

What does this PR do?

The incorrect training logic of Dreambooth Flux2 img2img has been modified, and the issue of abnormal loss during training has been fixed.

The Dreambooth flux2 img2img program experienced an abnormal loss during training. After investigation, it was found that the problem stemmed from incorrect slice information in model_pred and model_input_ids. The aforementioned logic was then fixed.

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@tcaimm tcaimm closed this Dec 18, 2025
@tcaimm tcaimm deleted the fix/dreambooth-flux2-img2img branch December 18, 2025 02:39
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.

1 participant