Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform

InsightfaceIt is very important for comfyuiPluginsWithout insightface, our IP-adapter or InstantID cannot be used, so everyone must install it.

Manual installation method

Step 1: Download the InsightFace file

First, access the following GitHub repository:

https://github.com/Gourieff/Assets/tree/main/Insightface

In this repository, you can see multiple versions of InsightFace files. Select the corresponding file to download according to your Python version. For example, if your Python version is 3.10, download the corresponding file.

Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform

Step 2: Check Python version

To check your Python version, enterComfyUIDouble-click the virtual environment icon to open a terminal window. In the terminal, you can see the Python version number.

Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform
Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform

Step 3: Download and install

  1. Select download path: Save the downloaded file to the same directory as the python.exe file you just opened. Make sure the path does not contain Chinese characters to avoid potential errors.
Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform
  1. Enter the ComfyUI root directory: Open the terminal and enter the command line to enter the root directory of ComfyUI.

We enter the following command

python.exe -m pip install insightface

If the previous installation failed, please uninstall first:

python.exe -m pip uninstall insightface

Then update pip:

python.exe -m pip install -U pip

Reinstall InsightFace via whl file:

python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl

After successful installation, there will be insightface files in our python_embeded folder

Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform

Installation method of Autumn Leaf Starter

It is relatively simple to install using the Autumn Leaf Launcher. Just follow the steps in the picture below. If the installation of the Autumn Leaf Launcher fails, you can also use the manual method above to install it.

Taking comfyui as an example, how to install and configure Insightface on the ComfyUI platform

The above is the installation method of InsightFace.

statement:The content is collected from various media platforms such as public websites. If the included content infringes on your rights, please contact us by email and we will deal with it as soon as possible.
Encyclopedia

The 6 most popular AI video generation tools at home and abroad to help you make explosive short videos

2024-7-19 9:39:46

TutorialEncyclopedia

AI face-changing tool InstantID, how to use online one-click face-changing in ComfyUI

2024-7-20 9:40:53

Search