This is an Extension for the Automatic1111 Webui,
which automatically sets the width
and height
in txt2img, based on the currently selected Checkpoint name.
In case you are not aware, SD 1.5 models should use
512x512
while SDXL models should use around1024x1024
This Extension comes with a auto_config.json
file.
With it, you can customize your starting resolution.
The rule at the top is prioritized over the rules further down.
Each rule contains:
- re: The regular expression to filter for
- width/height: self-explanatory
By default, it comes with 2 rules:
[
{
"re": "(xl)|(XL)",
"width": 1024,
"height": 1024
},
{
"re": ".",
"width": 512,
"height": 512
}
]
- The first one will capture any Checkpoint that has either "xl" or "XL" in the name
- The second one acts as the catch-all that simply captures any Checkpoint
Learn, Build, & Test RegEx
- RegExr: https://regexr.com/