invoke-ai / invoke-ai/InvokeAI

[enhancement]: FLUX KONTEXT Prefered Sizes (Resolutions)

Open
#8,374 2 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
28.2k
Forks
3k
Avg merge
6d 5h
Merged PRs (30d)
19

Description

### 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.