How to install insightface.

How to install insightface Instead of using ComfyUI directly I installed SwarmUI. exe -m pip install insightface-0. thirdparty. whl" Replace "PATH" with the actual paths on your system. Without insightface, our IP-adapter or InstantID cannot be used, so everyone must install it. 安装成功后我们的python_embeded文件夹内就会有 Welcome to the unofficial ComfyUI subreddit. ai Dec 25, 2023 · (For Windows users) If you still cannot build Insightface for some reason or just don't want to install Visual Studio or VS C++ Build Tools - do the following: (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python. Learn how to to FACE SWAP in Midjourney using InsightFace (Use your own face in Midjourney for unique AI Art). It's a simple tool called InsightFace. After installing the missing nodes of this workflow, install Insightface for Python 3. 11: "python_embeded\python. 10 or for Python 3. On Windows, download and install Visual Studio. Press enter and this should install InsightFace. Please keep posted images SFW. 0 $ conda activate faceswapping $ pip install blosc2 $ pip install insightface $ pip install onnxruntime Optional: $ pip The code of InsightFace is released under the MIT License. Jan 2, 2024 · Try pip install --upgrade pip setuptools and then pip install insightface==0. To add t Installing insightface from the conda-forge channel can be achieved by adding conda-forge to your channels with: conda config --add channels conda-forge conda config --set channel_priority strict Once the conda-forge channel has been enabled, insightface can be installed with conda : Insightface的安装. 10 : We achieved 2nd place at WIDER Face Detection Challenge 2019 . 12. get_model('your_recognition_model. samca Feb 26, 2025 · Install Visual Studio Community: If you haven’t installed this software yet, it’s essential for the Reactor extension. Conda To install this package run one of the following: conda install conda-forge::insightface. 08. 12 Have tried a bunch of solutions posted elsewhere but none have worked. I. 6 along with Visual Studio, including the Python and C++ packages. raise Exception('InsightFace must be provided for FaceID models. Thanks. be/WKKIPUOkYqsCode to test:https://github. 10: "python_embeded\python. 5``, we use MXNet as inference backend. Reply reply Jan 6, 2025 · 13. 在windows环境通过pip方式直接安装insightface经常发生下面的错误。在linux环境可能会简单一些。 这类问题都是因为Insightface安装需要VC环境编译,很多用户对此不熟悉。因此可以直接通过轮子文件安装。 Oct 13, 2020 · For English developers, see install tutorial here. Installation with ComfyUI Manager Install the custom node Install the models Install insightface pip install onnxruntime Install InstantID model Install InstantID ControlNet model Downloading and loading an InstantID workflow I hope this helps those who are having difficulty installing InstantID in your ComfyUI. 6 and Visual Studio. Reload to refresh your session. FaceIDのモデル Jun 30, 2023 · Subject: Bug Report: Build Failure with Python 3. onnx') handler. Oct 23, 2024 · 「python. bat. 2, we use onnxruntime as inference backend. 然后更新pip: python. exe -m pip install insightface. The training data containing the annotation (and the models trained with these data) are available for non-commercial research purposes only. Depending on the operating system, this package often needs to be compiled and installed directly in the user's environment. 16. I did a pip freeze to check all the versions of possibly dependencies and made sure they were all correct. exe -m pip install insight (and press tab to autocomplete or type the full insightface file name). Visit ComfyUI Online for ready-to-use ComfyUI environment InsightFace Python Library. Apr 2, 2023 · Install Inference Backend. Then it should work. import cv2 import numpy as np import insightface from insightface. data import get_image as ins_get_image handler = insightface. Install Insightface: Python 3. Next, Cagliostro) - Gourieff/sd-webui-reactor May 22, 2024 · Solution: Install the InsightFace library using the command pip install insightface. py, place it next to your . Learn the commands for InsightFace's FACE SWAP plugin for Discord (Use your own face in Photos, Ai Art or Midjourney). I had issues in the past with installing insightface for custom workflows and nodes like those provided for photomaker or I Feb 8, 2018 · You signed in with another tab or window. I am writing to report a bug related to the build process for a Python package, specifically when using Python 3. You signed out in another tab or window. 如之前安装失败请先卸载: python. whl. Google your errors. running Python 3. 7/Windows installation: https://youtu. Contact Us: contact@insightface. You switched accounts on another tab or window. Thank you for your work. ONNX Runtime "python_embeded"ディレクトリに移動して、 「python. After the installing it you must go to venv / Scripts folder open cmd, writte: activate. 15. dist-info from python311 to ComfyUI_windows_portable - python_embeded - lib - site-packages. 〇 各種モデル (ComfyUI Managerの「Model Manager」を使った方が間違いがない) 1. Swarm uses a ComfyUI backend and has ComfyUI built-in allowing you the same node layout structure with the addition of other features that are really great. 14. If not you need to manually install insightface, activate venv first then pip install insightface or use wheel (if you google you‘ll find many people use that solution to get a version of inisightface that will work for sure, make sure you’ve got matching python and wheel versions if going that route). exe -m pip install "ダウンロードしたファイルのフルパス"」 を実行 2. Explanation: I am trying to install InsightFace on ComfyUI to be able to follow a tutorial on FaceID. Finally, a softmax classifier was put on top of First of all, if you can't install it for some reason, don't open an issue here. 1. 3 – ComfyUI InsightFace Windows Fast Installation (2024) | NO MORE ERRORS FOR IPADAPTERS / ROOP. My full command looks like this: python. Jan 21, 2024 · Create a file named test-insightface. During the install, make sure to include the Python and C++ packages. 8 ``` 对于 Python 3. During the installation process, make sure to include the Python and C++ packages. Then, manually refresh your browser to clear the cache and access the updated list of nodes. org/project/insightface/0. exe -V Download prebuilt Insightface package for Python 3. Open your command prompt in de stable diffusion web ui directory and run the following command: pip install insightface==0. py", line 529, in load_insight_face raise Exception('IPAdapter: InsightFace is not installed! Install the missing dependencies if you wish to use FaceID models. face3d. In the extensions tab, paste the URL in the install section, click You signed in with another tab or window. prepare(ctx_id=0) The code of InsightFace is released under the MIT License. Please share your tips, tricks, and workflows for using this software to create your AI art. Next, Cagliostro) - Gourieff/sd-webui-reactor The code of InsightFace is released under the MIT License. See the License on GitHub. 16 : RetinaFace now can detect faces with mask, for anti-CoVID19, see detail here 2019. 9 ``` 接着激活该虚拟环境: ```bash conda activate insightface ``` #### 安装依赖库 进入项目的根目录后,通过 pip 来安装所需的依赖包: ```bash cd insightface pip install -r Learn how to install insightface. com/comfyanonymous/Com InsightFace Wheels: Commands: $ conda create -n faceswapping anaconda python=3. Type in python. Run this command: pip install insightface==0. exe -m pip install PATH\insightface-0. For ``insightface<=0. 10. Download automatic1111: git clone https://github. copied from cf-staging / insightface. whl" This guide will walk you through the installation of the InsightFace package on a Windows environment, including the necessary dependencies and configurations. I already edited webui-user. Open Stable Diffusion and go to the "Extensions" tab of the web UI. and then click webui-user. ') Exception: InsightFace must be provided for FaceID models. I almost gave up trying to install the ReActor node in comfyui, I tried this as a final step and surely enough it worked! Here you go I did this: I had to copy the site-packages the insightface as well as the insightface-0. I suggest you to do a clean install. Starting from insightface>=0. The project uses MTCNN for detecting faces, then applies a simple alignment for each detected face and feeds those aligned faces into embeddings model provided by InsightFace. 2020. exe -s -m pip install insightface-0. 02. com/alcarazolabs/sur Okay, check your venv folder if there’s an insightface subfolder in it. Feb 21, 2025 · If you see the instantID nodes’ import failure due to Insight Face, you must install a version of Insight Face compatible with your Python installation. the insightface installation for linux is then just a pip command for installing insightface? and downloading the antelopeV2 ? or do I need to download other stuff D:\ComfyUI\python_embeded\python. and done. cython' as an importable package, but it is not listed in the `packages` configuration of setuptools. You have to install ``onnxruntime-gpu`` manually to enable GPU inference, or install ``onnxruntime`` to use CPU only inference. This video fixes the error while swapping the face in comfyui or automatic1111 where it says:ModuleNotFoundError: No module named 'insightface'ControlNet ini Feb 18, 2025 · The purpose being to use it within Comfyui. venv location, and put the following contents in it (and preferably edit its inface_models path if your ComfyUI folder isn't exactly named "ComfyUI" at that exact path, because if you provide a correct path to the models directory, you can reuse the existing model in the ComfyUI installation; if the path cannot be found, it will Jun 12, 2023 · ##### # Package would be ignored # ##### Python recognizes 'insightface. Whether you're a beginner or an experienced user, this May 15, 2021 · Hi @nttstar,. Make sure to follow the default settings during installation. exe -m pip install onnxruntime」を実行. 注意 python_embeded 前为你的 ComfyUI 地址,install 后为你的 Insightface whl 文件名,后缀 whl 不能少。 运行命令,稍等片刻,即可安装成功。 当然,这是便携版 ComfyUI 的 Insightface 安装方式。 Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD. InstantID requires insightface, you need to add it to your libraries together with onnxruntime and onnxruntime-gpu. Next, Cagliostro) - Gourieff/sd-webui-reactor Mar 18, 2024 · 对于 Python 3. pip install insightface. Install from URL: Copy the ReActor GitHub URL and return to your Stable Diffusion web UI. mesh. Start ComfyUI and let the installation completes. bat to reference all my A1111 directories including the venv directory where there's a folder named InsightFace. Oct 5, 2024 · After installation, click the Restart button to restart ComfyUI. exe -m pip uninstall insightface. A new toy called the IP adapter Face ID has been launched, and it’s creating quite a buzz in the ComfyUI community. com/AUTOMATIC1111/stable-diffusion-webui. IPAdapter FaceID Model Update With ComfyUI The IP adapter Face ID… Read More »A Comprehensive Guide to Using the IP Adapter Face ID in ComfyUI for L:\ComfyUI\python_embeded\python. 3 In diesem Video zeige ich euch, wie ihr InsightFace und ReActor für das Stable Diffusion Interface ComfyUI installieren und verwenden könnt. app import FaceAnalysis from insightface. 7. 8: ```bash conda create -n insightface python=3. You signed in with another tab or window. ai Insightface is a very important plug-in for comfyui. Insightface is not automatically installed, if you wish to use it follow these instructions: If you have a working compile environment, installing it can be as easy as: pip install insightface Install insightface using pip by executing the following command: "PATH\ComfyUI_windows_portable\python_embeded\python. MediaPipe is a bit worse at detection, and can't run on GPU in Windows, though it's much faster on CPU compared to Insightface. . The latest Comfyui Windows Portable version uses Python 3. RuntimeError: CUDA execution provider not available. Get the entire course, plus the presentation, for free on our website: https://authorx. Dear GitHub Support Team, I hope this message finds you well. There is no limitation for both academic and commercial usage. Recognize and manipulate faces with Python and its support libraries. Jul 20, 2024 · python. InsightFace wird Feb 26, 2025 · On Windows, download and install the Community Visual Studio. 3-cp310-cp310-win_amd64. whl" Python 3. While using FaceAnalysis, we met the issue where the program was unsuccessful in loading the model and fall in a loop with the following message: Hello everyone, I'm Sharvin! In this video tutorial, I will show you how to I was able to solve facexlib and insightface errors and got the Flux PuLID to wor Sep 13, 2023 · You signed in with another tab or window. 3-cp311-cp311-win_amd64. ComfyUI: https://github. ') Also, for clarity since I spun my wheels for an hour on this also. 3. model_zoo. The first time, I tried to install it using "pip install insightface" and it was apparently installed but I realized the installation happened on the system path for python, and not the python folder included in ComfyUI. with the new year. Aug 26, 2024 · Learn how to create lookalikes using Insight FaceSwap in Discord. I use the CLIP-ViT-H because it's the appropriate preprocessor for the model. You have a tonne of options and I go pip3 insightface: https://pypi. Manual installation method Step 1: Download Insigh… First of all, if you can't install it for some reason, don't open an issue here. May 24, 2024 · D:\ComfyUI\python_embeded\python. Dec 22, 2023 · It shows that the installation was successful, but-----File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus. 9: ```bash conda create -n insightface python=3. 3 Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD. exe -s -m pip install --force-reinstall insightface-0. 3" as described in the readme file. and it worked fine. org, find the installer fitting your operating system and install it choosing to add CMAKE to your path. Jul 10, 2024 · Not exactly a fix but I found a work around that for now has resolved the whl issue. whl 的方式强制重装insightface,安装过程很顺利,也请清楚地显示我安装完成了,但是我启动绘世启动器之后,还是熟悉的开始安装onnxruntime,开始按照requierments文档自动安装 After installing the extension in A1111, you also need to run "pip install insightface==0. exe -m pip install -U pip. By install cmake it means go to cmake. Apr 14, 2025 · Upgrade ComfyUI to the latest version! Download or git clone this repository into the ComfyUI/custom_nodes/ directory or use the Manager. Next, Cagliostro) - Gourieff/sd-webui-reactor Dec 29, 2024 · The main reason is that the officially distributed insightface package is not pre-processed and packaged for easy installation like other packages. 通过whl文件重新安装InsightFace: python. 注意 python_embeded 前为你的 ComfyUI 地址,install 后为你的 Insightface whl 文件名,后缀 whl 不能少。 运行命令,稍等片刻,即可安装成功。 当然,这是便携版 ComfyUI 的 Insightface 安装方式。 In this video, I'll show you how to easily fix the InsightFace wheel error that many users encounter. Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD. Jan 3, 2024 · It seems like there’s a lot of excitement in the world of stable diffusions and image generative A. git. qgbjyi plbzrune cjps kgod ouqlw jntjo uiiaquz bbmspd btpvgsj qjcbxgh kpusvta dvzz rihjbuv obw zjdbp