Repository navigation
Studio: let FLUX.3 Klein edit through the Edit workflow - #15263
Conversation
|
@codex review |
1 similar comment
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #15241
Problem
With FLUX.3 Image Klein loaded, Images > Edit is greyed out. Black Forest Labs ship the model for editing: the model card describes it as "text-to-image generation and image editing", and BFL's own ComfyUI templates (
black-forest-labs/flux-3-image-klein-comfy) includei2iandmi2iedit workflows next tot2i. Studio only offered that call under Reference. Reference also renders at the page's size, not the source's, so editing a 16:9 photo with the page at 1:1 gave a square result with the scene extended (noted as a known limit in #14312).What changes
FLUX.3 Klein (distilled and base) now lists Edit, which runs the same reference call as before: Image 1 is the source, extra images follow in order, and the output size defaults to "Match Image 1".
reference_edit, is set on both FLUX.3 families. The diffusers engine and the native sd.cpp engine addeditto the workflows for those families and acceptworkflow = "edit", which takes the reference path. The status reportsunified_edit: true, so the page shows its existing Edit form (Image 1, Add image 2, Output size).localized_edit_modesstays empty, andlocalized_editis still refused for anything but Qwen-Image-2.1.Not changed
i2iprompt whenever images are attached.unified_editdirectly, which matches what they did before.Tests
test_sd_cpp_flux3.py: the native status liststxt2img, reference, edit, a native edit passes both images to sd.cpp, andlocalized_editis refused.test_diffusion_unified_edit.py:_family_workflowsand the conditioning fields for both FLUX.3 families, FLUX.2 klein unchanged, and an edit on the diffusers engine hands the pipeline the same images and size as Reference.test_diffusion_flux3.py: both family records carryreference_edit.Before / after
Fresh Studio installs at the merge base (
2c81e9f) and at this branch (50cc980, code-identical to the current head), each withunsloth/flux-3-image-klein-GGUFUD-Q4_K_XL loaded. This host has no GPU, so both loads ran on the native sd.cpp engine.txt2img, referencetxt2img, reference, editPOST /api/inference/images/generatewithworkflow = "edit"workflow: editThe edit from the last row ("make the yellow circle red", 4 steps, Enhance off):