Forge for Stable diffusion has been released which is designed on the top of Automatic1111 based on the Gradio python library. The name of Forge WebUI has been taken from the famous game "Minecraft Forge".
The developer of Forge has promised that in the future this WebUI will be converted to the extension of actual Automatic1111 so that you can use it as an extra optional feature with one click.
Let's see how you can install Forge WebUI with comparison and test with multiple NVIDIA GPUs.
Table of Contents:
Installing Forge WebUI:
We have categorized different users' needs that will help to go through the tutorial.
A. Upgrade Automatic1111 to Forge UI
If you are an old Automatic1111 user, who wants to leverage the power of Forge UI then this process will help you to upgrade it.
1. First download (Zip file) provided by the official GitHub repository and extract it using 7ZIP or WinRAR software.
This file package has all Python, Git, CUDA 12.1, Pytorch 2.3.1 and other included dependencies into it.
2. We are using WinRAR for extraction. After extraction move to the folder "webui_forge..." and click on the "update.bat" file to start downloading and updating the necessary files. You can see the progressing status in the command prompt window.
Its recommended to first update otherwise you may run the bug loaded files which will cause multiple errors.
3. When you see the update complete message popping on the command prompt means that upgrading has been done. Now, close the command prompt and click on the "run.bat" file to run the Forge WebUI on your browser.
4. Set up webui-user.bat file by right-clicking on it and setting up the "Automatic1111" directory path. To configure the dark mode, use "--theme dark" as the arguments.
Always consider '\' (backslash) and '/' (forward slash) while copying and pasting the directory path.
5. Open Forge UI by copying and pasting the local URL into the browser.
If you are facing error while using the current process, then you can try the usual installation which is provided below directs you to get the fresh installation.
B. Install Forge WebUI directly
If you are a new user who haven't installed Automatic1111 but wants to use Forge WebUI directly, then you need to use this workflow.
1. Download (Zip file) provided by the official GitHub repository and extract it using zip file extracting software like 7ZIP or WinRAR. This file packs with all the dependencies like Python, Git, CUDA 12.1, Pytorch 2.3.1, etc.
2. After extraction navigate to the folder "webui_forge..." and click on the "update.bat" file. This will do the necessary installation in the background. Wait for the installation to complete.
To check the real-time status head over to the progressing status in the command prompt window.
3. After installation, you will get the "update complete" message. Close the command prompt and click on the "run.bat" file to run the Forge WebUI on your browser.
C. Run both Automatic1111 and Forge
Before using these methods make sure you know what you are doing and you are well familiar with Python and Git.
Method 1:
This method provides the option to upgrade and downgrade the Automatic1111 and move to Forge UI.
1. First move to the "stable-diffusion-webui" folder and open the command prompt by clicking on the address bar.
Make sure you have Python and Git installed and have the knowledge of it.
Now, use these Git commands one by one by just copying and pasting into your command prompt:
git remote add forge https://github.com/lllyasviel/stable-diffusion-webui-forge
git branch lllyasviel/main
git checkout lllyasviel/main
git fetch forge
git branch -u forge/main
git pull
This will add a new directory into your "stable-diffusion-webui" directory and download all Forge's files so that you can use all the checkpoints and extensions earlier installed for Automatic1111.
Now if you want to move back to Automatic1111, use this command:
git checkout master
or
git checkout dev
Then you use this command to move the directory
cd extensions/sd-webui-animatediff
git checkout forge/master
Method2:
Using symlink you can run both of it. For that just open the Command Prompt.
Let's assume you have Forge in C:\Users\example\Desktop\forge and A1111 in C:\Users\example\Desktop\a1111 respectively.
If there's a 'models' directory inside C:\Users\example\Desktop\forge just delete it.
Now run this command in the command prompt(change your path accordingly).
Testing with Forge and Automatic1111
Let's do some testing with these two WebUIs with different machines but similar prompts. We are using the SDXL base model for generating 1024 by 1024 images. We ran multiple tests and came to the conclusion as follows:
- Tested with RTX3050 4GB VRAM
Prompt: a girl with a neon rainbow colored hair holding a black cat, realistic anime, uhd image, cartoonish characters, violet and azure, nightcore, depth of layers, cartoon-like characters, rainbow colors, hyper realism , 8k, octane renderGenerated using Automatic1111 Generated using Forge
Generated time on Automatic1111- 10min
Generated time on Forge- 2min - Tested with RTX3070 8GB VRAM
Prompt: front profile full body Photography, in front of black wall, a punk 80's British model woman with 50's haircut, in a blue and white turtleneck dress and large sunglasses, 80 degree view, art by Sergio Lopez , Natalie Shau, james jean and salvador daliGenerated using Automatic1111 Generated using Forge
Generated time on Automatic1111- 10 sec
Generated time on Forge- 5 sec - Tested with RTX3060 6GB VRAM
Prompt: statue of liberty made up of ice in northlights heaven illustration, portrait, hyper realistic , ultra detailed, 8kGenerated using forge Generated using Automatic1111
Generated time on Automatic1111- 23 sec
Generated time on Forge- 15 sec - Tested with RTX1070 6GB VRAM
Prompt: girl wearing headphones, super rough abstract aquarell amazing neon painting style on blackGenerated using Automatic1111 Generated using Forge Generated time on Automatic1111- 55secGenerated time on Forge- 15sec - Tested with RTX4060 16GB VRAM
Prompt: a beautiful indian bride, wearing heavy glass makeup, brown eyes, intricate red sari, portrait, shining golden jewellery, professional photoshoot, low angle photography, 8k,highly detailed, octane render
Generated time on Automatic1111- 15.5sec
Generated time on Forge- 14.5sec
Generated time on Forge- 14.5sec
The performance has been significantly increased a lot. What we noticed is that using SDXL models gives a way better performance than using SD1.5 models in VRAM memory allotment.
Conclusion:
Forge Webui is known to be a life-saving effort from its developers for the people who were struggling to run SDXL models into Automatic1111 with lower VRAM. It also includes Stable Video diffusion, and Zero123 tab however you will lose some extensions like Roop but Reactor can be used instead.