InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[enhancement]: Configurable dropdown menu with aspect ratio options

Open Svyaga opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Contact Details

svyaga

What should this feature add?

The goal is to implement control over default aspect ratio dropdown menu: chrome_AI1HaDZOHv It consists of two parts.

  1. Add config file for aspect ratios. For example, "invokeai-root\configs\aspect-ratio.cfg" (or any other format that can be edited in text editor). If the config file is empty, then InvokeAI loads up the default aspect ratio dropdown menu. But if it's edited like this:
SDXL
1:1 1536 1536
Portrait 832 1216
Wide 1216 832

SD 1.5
1:1 1024 1024
Portrait 512 768

Then InvokeAI will load parameters from the config file, and dropdown menu will look like this (assuming we load SDXL model): chrome_dnmnL5zPla 2. Second part is changing "Optimize size for model" button behavior: chrome_6DXy5ZfS1S If the aspect ratio config is not default, then clicking this button will set width/height to the currently selected option in dropdown menu. For example, if currently selected option is "Portrait" and model is SDXL, then clicking this button will change width/height to 823x1216.

Alternatives

Add "Aspect ratio configuration" button (1) or "Settings" option in dropdown menu (2) to change aspect ratio config in InvokeAI's UI instead of config file: Photoshop_qEm3myrF0S Clicking this button/option will open an additional window with aspect ratio settings.

Additional Content

No response

Svyaga avatar May 19 '24 20:05 Svyaga

Maybe the database could be used for storing presets instead?

ufuksarp avatar May 20 '24 08:05 ufuksarp

could be part of the model manager, storing for each model. Which brings up the same issue as storing prompts that work for all models, or for all XL models, etc... you want to have some kind of "pseudo-models" that can be used as the "parents" of models and inherit things you want models to have in common.

clsn avatar May 24 '24 18:05 clsn