InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[enhancement]: FLUX KONTEXT Prefered Sizes (Resolutions)

Open m4iccc opened this issue 4 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Contact Details

No response

What should this feature add?

In comfy UI we have the FluxKontextImageScale node due to Kontext prefers the following sizes, as referenced in this file: https://github.com/comfyanonymous/ComfyUI/blob/d9277301d28e732e82d0de1d5948aa00acbf6b65/comfy_extras/nodes_flux.py#L81

"PREFERED_KONTEXT_RESOLUTIONS = [ (672, 1568), (688, 1504), (720, 1456), (752, 1392), (800, 1328), (832, 1248), (880, 1184), (944, 1104), (1024, 1024), (1104, 944), (1184, 880), (1248, 832), (1328, 800), (1392, 752), (1456, 720), (1504, 688), (1568, 672),"

It would be a nice addition to add those resolutions to invoke's optimize size for model feature, however it currently always resets the resolution to 1024x1024 it would be nice to click this button and invoke automatically resizes to the closest or show us more sizes if right clicked.

Alternatives

No response

Additional Content

No response

m4iccc avatar Jul 31 '25 20:07 m4iccc

So the ask is being able to resize the current Aspect Ratio for the reference image to one in that list?

hipsterusername avatar Jul 31 '25 21:07 hipsterusername

Not for the reference image but the resulting image.

m4iccc avatar Jul 31 '25 22:07 m4iccc