wsl --import ffai-automatic <install location> <path and name of downloaded file>
wsl --import ffai-automatic C:\WSL D:\WSL\FollowFoxAI-automatic-WSL.tar.gz
wsl -d ffai-automatic --user felix
wsl --install -d Ubuntu-20.04
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
wget https://repo.anaconda.com/archive/Anaconda3-2023.03-Linux-x86_64.sh
bash ./Anaconda3-2023.03-Linux-x86_64.sh
sudo apt update
sudo apt upgrade
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
conda remove -n automatic --all
conda config --add channels conda-forge
conda env create -f environment-wsl2.yaml
conda activate automatic
conda activate automatic
mkdir repositories
git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion
git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers
git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer
git clone https://github.com/salesforce/BLIP.git repositories/BLIP
pip install diffusers invisible-watermark --prefer-binary
pip install git+https://github.com/crowsonkb/k-diffusion.git --prefer-binary
pip install git+https://github.com/TencentARC/GFPGAN.git --prefer-binary
pip install -r repositories/CodeFormer/requirements.txt --prefer-binary
pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 -f https://download.pytorch.org/whl/cu118/torch_stable.html
pip install jinja2 filelock networkx typing-extensions sympy triton==2.0.0 requests numpy pillow lit cmake
pip install gfpgan clip
pip install -r requirements.txt --prefer-binary
pip install -U numpy --prefer-binary
python -c "import torch; print(torch.cuda.is_available())"
cd ~/stable-diffusion-webui/models/Stable-diffusion
explorer .
conda activate automatic
cd ~/stable-diffusion-webui/
python launch.py
python launch.py --xformers
conda activate automatic
cd stable-diffusion-webui/
python launch.py --xformers