Skip to content

insightface error solution

Chenlei Hu edited this page Mar 30, 2024 · 1 revision

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

Screenshot_324

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

Clone this wiki locally