[enhancement]: Configurable dropdown menu with aspect ratio options
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:
It consists of two parts.
- 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):
2. Second part is changing "Optimize size for model" button behavior:
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:
Clicking this button/option will open an additional window with aspect ratio settings.
Additional Content
No response
Maybe the database could be used for storing presets instead?
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.