When installing stable-diffusion-webui, I am always stuck in the Installing gfpgan interface.

Preface

The reason for this problem is that the installation of gfpgan involves a foreign warehouse. Even after scientifically accessing the Internet, this foreign warehouse cannot be accessed in the terminal. The only solution is to install it manually. If you encounter some packages that cannot be installed by pip, you can try to install them. Find the corresponding package repository on github and install it manually.

Solution: Manually install gfpgan

1. Download gfpgan related files

https://github.com/TencentARC/GFPGAN

2. Activate the venv environment of stable-diffusion-webui

Execute the following command in the terminal to activate the virtual environment. This environment is the runtime environment specified by stable-diffusion-webui.

\stable-diffusion-webui-master\venv\Scripts\activate

After activation, you can see one more venvgreen character
Insert image description here

Insert image description here

3. Make sure the pip image is configured correctly

pip configuration instructions

4. Execute the following codes in order

pip install basicsr
pip install facexlib
pip install -r requirements.txt
python setup.py develop

5. View the results

Enter pip listto view installation results
Insert image description here

Guess you like

Origin blog.csdn.net/xdg15294969271/article/details/130856874