-
Notifications
You must be signed in to change notification settings - Fork 2k
insightface error solution
If you encountered insightface error (https://github.com/Mikubill/sd-webui-controlnet/issues/2698), please follow this guide to resolve the issue.
First do a clean installation of SD webui or remove the controlnet extension in the extensions folder and delete the venv folder, then run webui-user.bat, wait for the venv folder to be installed and restored then close webui.
Then enter these commands one by one:
Go to the folder with your SD webui, click on the path line and type "cmd" and press enter
The command line will open and you will see that the path to the SD folder is open. Now you need to enter these commands one by one, patiently waiting for all operations to complete (commands are marked in bold text):
F:\stable-diffusion-webui>venv\scripts\activate.bat
(venv) F:\stable-diffusion-webui>pip install mediapipe
(venv) F:\stable-diffusion-webui>pip install svglib
(venv) F:\stable-diffusion-webui>pip install fvcore
(venv) F:\stable-diffusion-webui>pip install "opencv-python>=4.8.0"
(venv) F:\stable-diffusion-webui>pip install https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl --prefer-binary
(venv) F:\stable-diffusion-webui>deactivate
Wait for the installation to complete. Run webui-user.bat and install/reinstall the controlnet extension. Error messages should no longer appear and controlnet will install normally. If there are any errors, you can ignore them, everything should work fine. Special thanks to @Vadim2S