I’ll guide you through the steps to install FaceLib in ComfyUI, starting with the important installation of FilterPy. Let’s dive in!
Step 1: Install FilterPy
Before you can install FaceLib, you need to install FilterPy. This library is essential for working with image data. To install FilterPy, follow these steps:
- Open Command Prompt:
Search for “cmd” in your Windows search bar. Right-click on it and select “Run as administrator” to avoid permission issues. - Navigate to Your ComfyUI Directory:
Use the
command to change your directory to where ComfyUI is installed. For example:cd
cd F:\2\ComfyUI_windows_portable
Install FilterPy:
Go to the Python Folder
F:\2\ComfyUI_windows_portable\python_embeded\
Run this command to install FilterPy directly from GitHub:
python.exe -m pip install git+https://github.com/rodjjo/filterpy.git
Press Enter to execute the command. You should see a success message once the installation is complete.
Step 2: Download the FaceLib Wheel File
Now that FilterPy is installed, you can download FaceLib. Make sure to get the right wheel file for FaceLib. Save this file in the following directory:
Download Link
facelib-1.2.1-py3-none-any.whl
Save it to this Location
F:\2\ComfyUI_windows_portable\
Copy the Path example
F:\2\ComfyUI_windows_portable\facexlib-0.3.0-py3-none-any.whl
Step 3: Install FaceLib Using Pip
With the FaceLib wheel file saved, it’s time to install it. Follow these steps:
Go to the Python Folder
F:\2\ComfyUI_windows_portable\python_embeded\
Run The Following Command
python.exe -m pip install F:\2\ComfyUI_windows_portable\facexlib-0.3.0-py3-none-any.whl
paste the copy path after python.exe -m pip install
F:\2\ComfyUI_windows_portable\facexlib-0.3.0-py3-none-any.whl
Step 4: Verify the Installation
To check that FaceLib is installed correctly, run this command:
F:\2\ComfyUI_windows_portable\python_embeded\python.exe -m pip show facexlib
If successful, you should see information about the FaceLib package, including its version and location.
Step 5: Start Using FaceLib in ComfyUI
With FaceLib installed, you’re ready to use it in your ComfyUI projects! This library offers various tools for facial recognition and manipulation, which can really enhance your AI applications.
Conclusion
Congratulations! You have successfully installed FaceLib in ComfyUI, starting with the important step of installing FilterPy first. If you have any questions or run into any issues during the installation, feel free to leave a comment below. Happy creating!
H:\sd3\python_embeded>python.exe -m pip install H:\sd3\python_embeded\facelib-1.2.1-py3-none-any.whl
Processing h:\sd3\python_embeded\facelib-1.2.1-py3-none-any.whl
Requirement already satisfied: joblib in h:\sd3\python_embeded\lib\site-packages (from facelib==1.2.1) (1.3.2)
Requirement already satisfied: opencv-python in h:\sd3\python_embeded\lib\site-packages (from facelib==1.2.1) (4.10.0.84)
Requirement already satisfied: numpy in h:\sd3\python_embeded\lib\site-packages (from facelib==1.2.1) (1.25.2)
Requirement already satisfied: scikit-image in h:\sd3\python_embeded\lib\site-packages (from facelib==1.2.1) (0.22.0)
Requirement already satisfied: scikit-learn in h:\sd3\python_embeded\lib\site-packages (from facelib==1.2.1) (1.4.1.post1)
INFO: pip is looking at multiple versions of facelib to determine which version is compatible with other requirements. This could take a while.
ERROR: Package ‘facelib’ requires a different Python: 3.11.8 not in ‘=3.5’
H:\sd3\python_embeded>python -V
Python 3.11.8
Since you’re dealing with outdated setuptools and potentially incompatible packages, it may help to update your pip and setuptools to the latest versions:
make sure backup the python folder: and try to upgrade “python.exe -m pip install –upgrade pip setuptools”
then try this
python.exe -m pip install –force-reinstall H:\sd3\python_embeded\facelib-1.2.1-py3-none-any.whl
C:\Users\Ricar\Desktop\ComfyUI_windows_portable\python_embeded>python.exe -m pip install –force-reinstall C:\Users\Rica
r\Desktop\ComfyUI_windows_portable\python_embeded\facelib-1.2.1-py3-none-any.whl
Processing c:\users\ricar\desktop\comfyui_windows_portable\python_embeded\facelib-1.2.1-py3-none-any.whl
Collecting joblib (from facelib==1.2.1)
Using cached joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)
Collecting opencv-python (from facelib==1.2.1)
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting numpy (from facelib==1.2.1)
Using cached numpy-2.1.1-cp311-cp311-win_amd64.whl.metadata (59 kB)
Collecting scikit-image (from facelib==1.2.1)
Using cached scikit_image-0.24.0-cp311-cp311-win_amd64.whl.metadata (14 kB)
Collecting scikit-learn (from facelib==1.2.1)
Using cached scikit_learn-1.5.2-cp311-cp311-win_amd64.whl.metadata (13 kB)
INFO: pip is looking at multiple versions of facelib to determine which version is compatible with other requirements. This could take a while.
ERROR: Package ‘facelib’ requires a different Python: 3.11.9 not in ‘=3.5’
Since you’re dealing with outdated setuptools and potentially incompatible packages, it may help to update your pip and setuptools to the latest versions:
make sure backup the python folder: and try to upgrade “python.exe -m pip install –upgrade pip setuptools”
then try this
python.exe -m pip install –force-reinstall H:\sd3\python_embeded\facelib-1.2.1-py3-none-any.whl
E:\ComfyUI_windows_portable\python_embeded>python.exe -m pip install git+https://github.com/rodjjo/filterpy.git
Collecting git+https://github.com/rodjjo/filterpy.git
Cloning https://github.com/rodjjo/filterpy.git to c:\users\vmtin\appdata\local\temp\pip-req-build-lvt9cw9a
Running command git clone –filter=blob:none –quiet https://github.com/rodjjo/filterpy.git ‘C:\Users\vmtin\AppData\Local\Temp\pip-req-build-lvt9cw9a’
Resolved https://github.com/rodjjo/filterpy.git to commit a34721e266c4c39f8abd5037ea83c2ed774d9606
Preparing metadata (setup.py) … done
Requirement already satisfied: numpy in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from filterpy==1.4.5) (1.26.4)
Requirement already satisfied: scipy in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from filterpy==1.4.5) (1.14.1)
Requirement already satisfied: matplotlib in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from filterpy==1.4.5) (3.9.2)
Requirement already satisfied: contourpy>=1.0.1 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (1.3.0)
Requirement already satisfied: cycler>=0.10 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (4.54.1)
Requirement already satisfied: kiwisolver>=1.3.1 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (1.4.7)
Requirement already satisfied: packaging>=20.0 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (24.1)
Requirement already satisfied: pillow>=8 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (10.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (3.1.4)
Requirement already satisfied: python-dateutil>=2.7 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->filterpy==1.4.5) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in e:\comfyui_windows_portable\python_embeded\lib\site-packages (from python-dateutil>=2.7->matplotlib->filterpy==1.4.5) (1.16.0)
It looks like you’ve successfully installed the filterpy library from its GitHub repository. The output indicates that all the required dependencies, including numpy, scipy, and matplotlib, are already satisfied in your Python environment
why have facexlib and facelib both referenced?
Without FilterPy, facexlib Pulid node won’t work. To run Pulid, you must have these libraries installed in your Python environment
pip install –upgrade pip setuptools
C:\Users\user\Desktop\ComfyUI_windows_portable\python_embeded>python.exe -m pip install “C:\Users\user\Desktop\ComfyUI_windows_portable\facelib-1.2.1-py3-none-any.whl”
Processing c:\users\user\desktop\comfyui_windows_portable\facelib-1.2.1-py3-none-any.whl
Collecting joblib (from facelib==1.2.1)
Using cached joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB)
Collecting opencv-python (from facelib==1.2.1)
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB)
Requirement already satisfied: numpy in c:\users\user\desktop\comfyui_windows_portable\python_embeded\lib\site-packages (from facelib==1.2.1) (2.1.2)
Collecting scikit-image (from facelib==1.2.1)
Using cached scikit_image-0.24.0-cp312-cp312-win_amd64.whl.metadata (14 kB)
Collecting scikit-learn (from facelib==1.2.1)
Using cached scikit_learn-1.5.2-cp312-cp312-win_amd64.whl.metadata (13 kB)
INFO: pip is looking at multiple versions of facelib to determine which version is compatible with other requirements. This could take a while.
ERROR: Package ‘facelib’ requires a different Python: 3.12.7 not in ‘=3.5’
python.exe -m pip install –ignore-requires-python “C:\Users\user\Desktop\ComfyUI_windows_portable\facelib-1.2.1-py3-none-any.whl” i typed this prompt doest have any risk on my work with comfyui
you did it wrong way