Update readme to remove redundant parts.

This commit is contained in:
Bernard Maltais 2022-09-09 17:12:08 -04:00 committed by AUTOMATIC1111
parent c529532f8b
commit cbfd0caef9

View File

@ -174,7 +174,7 @@ After running once, a `ui-config.json` file appears in webui directory:
Edit values to your liking and the next time you launch the program they will be applied.
### Windows 11 WSL2 instructions
Alternatively, here are instructions for installing under Windows 11 WSL2, everything by hand:
Alternatively, here are instructions for installing under Windows 11 WSL2 Linux distro, everything by hand:
```bash
# install conda (if not already done)
@ -190,59 +190,11 @@ cd stable-diffusion-webui
conda env create -f environment-wsl2.yaml
conda activate automatic
# clone repositories for Stable Diffusion and (optionally) CodeFormer
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
# install requirements of Stable Diffusion
pip install transformers==4.19.2 diffusers invisible-watermark --prefer-binary
# install k-diffusion
pip install git+https://github.com/crowsonkb/k-diffusion.git --prefer-binary
# (optional) install GFPGAN (face resoration)
pip install git+https://github.com/TencentARC/GFPGAN.git --prefer-binary
# (optional) install requirements for CodeFormer (face resoration)
pip install -r repositories/CodeFormer/requirements.txt --prefer-binary
# install requirements of web ui
pip install -r ./requirements.txt --prefer-binary
# update numpy to latest version
pip install -U numpy --prefer-binary
# (optional) install requirements for GFPGAN (upscaling)
wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth
# (outside of command line) put stable diffusion model into web ui directory
# the command below must output something like: 1 File(s) 4,265,380,512 bytes
ls model.ckpt
```
After that the installation is finished.
Run the command to start web ui:
```
python webui.py
```
If you have a 4GB video card, run the command with either `--lowvram` or `--medvram` argument:
```
python webui.py --medvram
```
After a while, you will get a message like this:
```
Running on local URL: http://127.0.0.1:7860/
```
Open the URL in browser, and you are good to go.
After that follow the instructions in the `Manual instructions` section starting at step `:: clone repositories for Stable Diffusion and (optionally) CodeFormer`.
### Manual instructions
Alternatively, if you don't want to run webui.bat, here are instructions for installing