This Automatic1111 extension adds a configurable dropdown to allow you to change settings in the txt2img and img2img tabs of the Web UI.
This allows you to do things like swap from low quality rendering settings to high quality. Or apply hires settings that uses your favorite anime upscaler. Or set image dimensions to make a wallpaper. You can even use it to set custom script fields like XYZ plot values or ControlNet values.
Works with stable-diffusion-webui-forge. Untested with SD.Next.
Note: A1111 1.10 fixes this backwards compatibility issue described below, so it's only relevant if you are using 1.9.
A1111 1.9.0 added a new "Schedule type" dropdown next to the "Sampling method" dropdown which splits off the scheduler from the sampler. This means that all of your config presets that have a saved sampler needs to be renamed/fixed to remove the scheduler text at the end. For example, if you have txt2img_sampling
set to "DPM++ 2M Karras", it now needs to be set to "DPM++ 2M" with the new txt2img_scheduler
dropdown set to "Karras". You can do this by manually editing your config-txt2img.txt
and config-img2img.txt
files at /extensions/Config-Presets
, or by deleting the bad presets in the web UI and remaking them.
If you get a AssertionError: bad sampler name
this is why. You need to fix your sampler names to match the new naming convention in A1111 1.9.0.
The new dropdown in the image gallery.
Dropdown values (configurable), select one and the generation settings values will be applied to the Web UI.
Clicking the add/remove [ποΈ] button lets you create and delete custom presets of settings currently in the Web UI. Custom fields added by other scripts/extensions can also be used by clicking the [π Add custom fields...] button. Each button has tooltips to help you.
Screenshot of config-txt2img.json, which can be opened with the open config file [π] button. You can use this if you want manual control while editing your presets. If you decide to edit the config this way, you can use the refresh [π] button. config-img2img.json also exists for the img2img tab.
- In your Automatic1111 Web UI, go to the Extensions tab > Install from URL > URL for extension's git repository:
https://github.com/Zyin055/Config-Presets
- Click the Install button
git clone
this repo to theextensions
folder in your Web UI installation
- Unable to save fields in the quick access area at the top of the page (checkpoint, vae, clip skip, etc)
- Unable to save multi-select fields, such as the XYZ script's checkpoint name and sampler fields
Click to view Changelog
- Added a new argument which an be put in webui-user.bat in COMMANDLINE_ARGS:
--configpresets-dir
to point to a different folder with Config Presets configuration files instead of using this extension's folder. Useful if you have multiple installations of A1111 and want to share your custom settings between them.- Example: in webui-user.bat:
set COMMANDLINE_ARGS= --configpresets-dir "C:\path\to\Config Presets config files"
- Example: in webui-user.bat:
- Support for Forge's Distilled CFG (txt2img_distilled_cfg_scale) for Flux models
- Added new presets for Flux Dev/Schnell, tweaked existing presets
- Fixed backwards compatibility issue introduced in yesterdays update.
- Updated for Automatic1111 v1.9.0
- There is a new "Schedule type" dropdown next to the "Sampling method" dropdown which splits off the scheduler from the sampler. This means that all of your config presets that have a saved sampler needs to be renamed/fixed to remove the scheduler text at the end. For example, if you have
txt2img_sampling
set to "DPM++ 2M Karras", it now needs to be set to "DPM++ 2M" with the newtxt2img_scheduler
dropdown set to "Karras". You can do this by manually editing yourconfig-txt2img.txt
andconfig-img2img.txt
files at/extensions/Config-Presets
, or by deleting the bad presets in the web UI and remaking them.
- Improved error handling when the config files are edited manually
- Made the buttons smaller, fixes cosmetic alignment issue
- Added a refresh button to reload the config file from disk, useful if you edit the config text file manually
- Updated default config presets
- Fixed an error when saving the hires fix sampler dropdown field (hr_sampler) and selecting the value "Use same sampler"
- Fixed an issue when saving a dropdown field in Web UI versions before 1.6.0
- Added a Reapply button
- Fixed config presets that used radio button components not working
- Updated for Automatic1111 v1.6.0
- Added support for "Refiner" (txt2img_enable-checkbox) and "Switch at" (txt2img_switch_at) components for txt2img and img2img, which are used for SDXL Refiner models. The refiner checkpoint component is not supported.
- The UI no longer needs to be reloaded when creating a new config preset
- Updated for the March 29th Automatic1111 version which uses Gradio 3.23
- Added the ability to add almost any field on the UI to a config preset with the "Add tracked fields..." button
- Added the ability to select which fields are saved when creating a new config preset (before, this could have been done manually by editing the .json config file)
- Moved some buttons around in the UI for creating a new config preset
- Added Hires Upscaler (txt2img_hr_upscaler), Upscale by (txt2img_hr_scale), and Restore Faces (txt2img_restore_faces) as eligible fields to be used in a config preset
- Tweaked default config preset values created during installation
- Removed "Default" preset since it doesn't work with new system that lets you ignore fields
- Manually removing a preset value in the config file will make that value be ignored
- Added 768x768, 1080p, 1440p, and 4k presets for txt2img (they won't show up for existing installations, you'd need to delete your config-txt2img.json file to have it recreated with the new presets)
- Your custom presets will be wiped, you will need to remake any saved custom presets because of changes made in Automatic1111
- The Config Presets dropdown in the txt2img and img2img tabs now use separate config files and thus have separate presets
- Saving a new preset now requires a Web UI restart (done automatically)
- Added support for the Sampler method turning from a checkbox into a dropdown
- Added support for the removal of Firstpass width/height being replaced by Upscale by
- Added the "Add/Remove..." button to create and delete config presets within the Web UI
- config.json will be created on first startup, user edits will not be overwritten when updating the extension after updating to this version
- Fix for installation error on linux
- config.json was tweaked, added Firstpass width and Firstpass height
- Better support for img2img tab compatibility
- Initial Release