Git Product home page Git Product logo

a1111-config-presets's Introduction

What does this do?

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.

Screenshots

The new dropdown in the image gallery.

gallery

Dropdown values (configurable), select one and the generation settings values will be applied to the Web UI.

dropdown

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.

addremove

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. config-img2img.json also exists for the img2img tab.

config

Installation

Easy way

  • 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

Manually

  • Git clone this repo to the extensions folder in your Stable Diffusion installation

Known bugs

  • Automatic1111 v1.1.0+ causes dropdown change events to not occur. This affects components such as the script_list dropdown, XYZ plot dropdowns, and ControlNet model/preprocessor dropdowns, and likely others. The workaround is to manually reselect the value in the dropdown list.
    • This is fixed in Automatic1111 v1.4.0-RC. Gradio 3.32 seems to fix this issue

Changelog

Click to view Changelog

5/15/2023

  • The UI no longer needs to be reloaded when creating a new config preset

4/29/2023

  • 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

3/06/2023

  • 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

2/10/2023

  • Manually removing a preset value in the config file will make that value be ignored

2/09/2023

  • 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)

1/02/2023

  • 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

12/21/2022

  • Added the "Add/Remove..." button to create and delete config presets within the Web UI

12/19/2022

  • config.json will be created on first startup, user edits will not be overwritten when updating the extension after updating to this version

12/15/2022

  • Fix for installation error on linux

12/13/2022

  • config.json was tweaked, added Firstpass width and Firstpass height
  • Better support for img2img tab compatibility

12/12/2022

  • Initial Release

a1111-config-presets's People

Contributors

gerschel avatar mark-greenbook avatar nykwil avatar s-del avatar slapaper avatar symbiomatrix avatar zyin055 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.