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 venv
green character
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 list
to view installation results