AUTOMATIC1111's WebGUI

Feature List


Back to the main page

As the AUTOMATIC1111 webGUI seems to be ever expanding with new features, I've decided to give it its own page to properly explain the most prominent features and a few hidden/ lesser known tools available in the GUI.

For more detailed information about the GUI itself, visit the Detailed Overview page.

Xformer rendering optomizationdown_caret

I have not explored the details of this feature too much. But Xformer is supposed to improve performance when rendering images. When using the AUTOMATIC111 webGUI & will mostly be effective on a Nvidia 30XX series graphics card, you can simply edit the webui-user.bat file by adding --xformers to the end of the set COMMANDLINE_ARGS= line.

There has been a minor update to the webGUI that now supports Nvidia cards 1000 & 2000 series cards as well.

In my testing using an RTX 3080 graphics card, I do see a noticable improvement but only a slight improvement of 1 or 2 iterations per second.

There is a way for older graphics cards to run Xformer, but there are a few more steps involved.

Auto update the webGUIdown_caret

If you have installed the webGUI using the primary method provided in Rentry’s guide, you can add edit the webui-user.bat file to auto-update and download the latest changes. To do this, simply add git pull 1 line above call webui.bat

I have come across a bug with updating where after updating the webGUI will not work. To solve this, all you need to do is remove the git pull line from the file and save the file before running it again. This means it won’t auto-update, so you need to re-add that line every time you want to update. Hopefully, you don’t come across this bug so you can simply leave the git pull line in there indefinetly.

For more information on specific features of the webGUI, visit AUTOMATIC1111 webGUI Features page.

Changing the selected GPUdown_caret

If you're a lucky person with 2 or more GPU's on your system and you'd like to change which one the WebGUI uses, you can edit the webui-user.bat to do so. All you need to do is add the line set CUDA_VISIBLE_DEVICES=1 somewhere above the call webui.bat line in the file. The number 1 corresponds to a GPU (the secondary GPU in this example). Setting this value to 0 will use your primary GPU which should be the default even without adding this line.

As the line states CUDA, I assume this will only work with Nvidia cards with CUDA capabilities.

It's also worth noting that at the current time you can only use 1 GPU per instance of the WebGUI. This does mean however, that you could run 2 (or more) instances of the WebGUI each running on a seperate GPU cards.

Credit to Reddit user r/iambaney for posting this information in a comment.

Other Custom Parametersdown_caret

There a list of settings you can set by adding phrases to the set COMMANDLINE_ARGS= line of the webui-user.bat file. You can find the full list of parameters on AUTOMATIC1111 github page.

The most important options are --medvram and --lowvram which will reduce the amount of VRAM used by the model but also increase the processing time for generating images. You should only need to use these options if your graphics card does not have a lot of VRAM.

At the current time, it is recommended to not use the parameter --share as that opens your computer to public access meaning others could access your computer, or at the very least your webGUI.

Model Switchingdown_caret

The WebGUI allows you to switch between different .ckpt models very easily with the drop-down menu in the top right-hand corner. One lesser known tip about the model switching feature is that you can add subfolders to the models directory and they will show up correctly in the model switcher. This is very useful if you've got multiple versions of the same model or simply want to categorise the models you have.

Generate Foreverdown_caret

A semi-hidden feature of the txt2img tab is the ability to make the program generate images indefinetly. All you need to do is right-click the generate button and choose "generate forever" and away it goes. To stop, simply right-click the button again and select "cancel generate forever". This is very useful if you're looking to generate a heap of images without actively being at your computer or while you work on something else.

WebGUI Settingsdown_caret

On the webGUI there are many settings you can set to change how the model works, where files are saved and a few other little things. They are mostly self explainatory, but the most useful setting to turn on is the "show progressbar" and "show image creation progress every N sampling steps", the latter lets you preview what the model is generating as it is being generated; although it does not work for all sampling methods.

Localizationdown_caret

Localization is a feature added on 18/10/22 and allows people to create translations for the UI interface. This is a great user-friendliness improvement that will make Stable Diffusion even more accessible to people. All you need to do is add a specially formatted .json file to the "localization" folder of the webGUI, like you would with a model or embedding. It does however require you to restart the program before the localization file will activate. You must also go to the webGUI settings tab and select the localization file in the setting of the same name.

You can use this to rename all of the text on the GUI to anything you like, so it's not just limited to other languages, you could simply rename buttons to words that make more sense to you.

You can download the here. (self hosted download)

Custom Scriptsdown_caret

The webGUI allows to some extentability in the form of custom scripts. These are python files that add some minor feature to the program to help make prompts, generate images in a certain way, or add more complex features like video generation. The webGUI Github page has a good list of useful scripts, custom scripts list.

It isn't confirmed, but I have heard proposals for the webGUI to become more modular and expandable to allow more features and flexibility with the GUI. There is no word on if AUTOMATIC1111 will implement this, but it would be a great feature to grow community support around this GUI.

Extensions

Extensions are a more steamlined and powerful version of custom scripts that was introduced on 22/10/22. They allow for more modularity and community driven features to extend the AUTOMATIC1111 webGUI. there is also a new API to be used with the webGUI, however I am not techincal enough to give more information on that or if it is even related to extensions. As far as I know, exensions are suppose to surpass custom scripts as the new standard for extending the GUI.

For a list of official extensions, visit the Github wiki page

As of 01/11/2022 the WebGUI has an in-built way to easily install and update extensions. There is a new "Extensions" tab on the UI that lets you view all your installed extensions, turn them on or off & install new extensions. To install extensions simply go to the "install from URL" tab in the "Extensions" main tab and past a Github repository link like https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards and the WebGUI will take care of installing it correctly. If you still need to manually install an extension, that should still work correctly by installing the extension in the extensions folder.

For a list of notable scripts and extensions I have found you can visit the extensions page.

Color Sketchdown_caret

Color Sketch is an optional feature that must be activated in the set COMMANDLINE_ARGS= of the webui-user.bat file. To activate it, add the phrase --gradio-img2img-tool color-sketch to the commandline_args.

I have not tested this feature a lot, but I believe it allows you to draw images within the webGUI itself and use those images in the img2img section to generate art. It is a good feature to steamline the process and allow you to experiment with drawing and generating a lot quicker. If you use the webGUI in a Chromium-based brower, you can also use the colorpicker tool native to those browsers to easily choose colors to use.

To use this feature you do need to still add an image to draw on. If you want a blank 512x512 image to use, you can download a here. (self hosted download)