This results from 3 Windows reinstalls and many, many trials and errors. We hope that this little documentation could be helpful for you.
Please note this detailed description of an installation protocol that worked on our machine. We replicated the installation a few times (including on a separate Windows 10 machine). That said, it’s likely that on different machines and setups, there will be issues with this exact protocol. However, having such a detailed step-by-step reference point. could help discover your specific problems and deal with them
Our setup is GTX3090 on Windows 11, which was freshly installed (after failing quite a few times on non-fresh Windows).
Why?
When possible, running things locally can be preferred for a few reasons. And AI experts prefer to do it through Linux OS, which Windows users can replicate through WSL (Windows Subsystem for Linux). It’s a bit complicated to get started but helps with good habits of having virtual environments, getting used to working with Linux, and potentially improving performance or doing things that are not possible without Linux
What to expect in this write-up:
Setting up WSL2 on Windows 11
Installing the latest Nvidia Drivers
Installing CUDA in WSL2
Installing Conda in WSL2
Installing cudatoolkit with Conda
Installing git with Conda
Cloning AUTOMATIC1111 WebUI and Dreambooth extension repositories
Create a virtual environment with Conda
WebUI installation with detailed steps
Manual installation part
Adding ckpt file
Mod webui-user-dreambooth.bat and .sh files
Adding required path variables in WSL2
Installing Xformers
Running and testing the installation of both WebUI and Dreambooth extension
First launch
Test Image generation
Test Dreambooth extension
Detailed Steps
Setup WSL2
Run CMD as admin
Run the command: wsl --install
Restart computer
After restarting, we see Ubuntu is being installed
It prompted us to create a username and password
Once installed, I ran update commands for Ubuntu:
sudo apt update
sudo apt upgrade
7.Close the ubuntu terminal 8.Run CMD as admin 9.Run the command: wsl --update 10.Problem: it installed Ubuntu 22.04, which is a newer version and causes problems. So I’ll uninstall and install 20.04 instead 11.Uninstall by going to windows, add or remove programs, finding ubuntu, and uninstalling. Restart windows once done 12.To install a new version, I opened Microsoft store, searched for Ubuntu 20.04
13.Launch, wait for installation, and repeat from step 5