-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies missing for Insightface #162
Comments
I'm getting the exact same problem @pphoto808! Running on an i9, RTX 4080. Very weird. I followed all of Matteo's/Cubiq's instructions. Pip installed all of the dependencies and models. Everything is placed where it should be. And still on ComfyUI I get this: Error occurred when executing InsightFaceLoader:
|
Same problem here. I guess we'll need a new tutorial: "How to properly install InsightFace to make it work with IPAdapter", apparently many of us couldn't make it. |
It is the same problem with issue #156. |
This solution From Reactor Trubleshoot: I suggest uninstalling InsightFace first if exists then follow the above instructions. |
Thanks MMoneer, I've tried that, but no luck. Comfy still complains that InsightFace is not installed. |
do you have any errors in the consol log? |
"Error occurred when executing InsightFaceLoader: IPAdapter: InsightFace is not installed! Install the missing dependencies if you wish to use FaceID models. File "F:\ConfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute |
I mean while InsightFace installation prosses. |
Not really, if I run the install command again, I get this: |
I've tried that troubleshooting option too! Doesn't resolve the issue for me. |
Please uninstall Insightface first, as the above Requirement already satisfied , it has to be a fresh installation |
Doesn't work. Does it work for you? Can you share some screenshots of how you got it running? |
How to uninstall Insightface? I success install Insightface but also got an error from ComfyUI like @Winnougan |
To uninstall anything using pip you type: However, it's not working for me. I suspect there's something with a missing model? Or perhaps the name of the folder. I'm hoping @cubiq can share a fix for us. |
Is it right? @Winnougan |
Error occurred when executing InsightFaceLoader: IPAdapter: InsightFace is not installed! Install the missing dependencies if you wish to use FaceID models. File "D:\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute |
Yes, it's correct. But, just like you, I'm continuing to run into errors. There seems to be no fix until @cubiq can resolve this for us. |
On windows to compile insightface you need Visual Studio installed or the "Desktop Development with C++" from VS C++ Build Tools. Alternatively you can download the pre-compiled version from here. Select the file based on your python version Then you can install it with If you have inisghtface already installed remove it with It's not my fault that Tencent Labs chose inisghtface as provider and Insightface is such a pain. I honestly don't remember if onnx is automatically installed, just in case you can try to also manually install On a Mac I have no idea, if it's any close to linux you just have to install it with pip, be sure to activate the comfyui environment first. Note the I'm not sure it will work on a Mac anyway. Software support is not great on anything that is not Cuda. |
I faced this problem with reactor, I did these steps: |
running the update_comfyui_and_python_dependencies.bat in the update folder fixed it for me. |
I don't know, my Reactor is well done, but FaceID is failed. The new will break the good.) |
as renzorosso stated: try running the update_comfyui_and_python_dependencies.bat - it worked for them. |
Great! Thanks to everyone who has participated in the search for a solution, and a special thanks to Matteo, who is making all of this possible, and trying to help us even a 25th of December. |
The only way I've managed (despite following all the good advice above) to get faceID to work without ComfyUI moaning about Insight face not being installed was too. Extract a fresh copy of ComfyUI Portable to a new folder (from a n older zip file) Now to put all my usual custom nodes back in and see what if anything else breaks. This is the joy of bleeding edge, this is open source, this is the way ;o) |
Solved. |
You guys are the best Christmas present ever lol. Nice to see so many responses! Sneaked away from my wife to say thanks for the comments and suggestions. Since I'm on Mac, don't have the batch update file or folder. Is it possible for someone to attach the file (update_comfyui_and_python_dependencies.bat)? I want to maybe rewrite as a python script and try that. IF that doesn't work, then I'll try the other recommendation. Again, thanks to all! |
Heres the contents of the file: @echo off |
How do you install 1.14 with pip? I was having problems. Still can't get it to load. Tried every suggestion so far. Running on i9, RTX 4080 (so I have cudas). Updated ComfyUI, followed every instruction. But I'd like to download onnx and the onnx runtime to 1.14 but can't figure it out. |
okay so i solved it... heres what i did . then you activate the venv with this command : venv\Scripts\activate.ps1 then install torch nightly : pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121 then install onnxruntime : pip install onnxruntime after that install the requirements : pip install -r requirements.txt then install the python 3.10 wheel of insight face after that launch comfyui by writing python.exe main.py and pressing enter you can also make a webui.bat file . to do so make a text file and call it webui paste this in it : REM Run the Python script REM Keep the command window open after running the script (useful for seeing output or errors) then save and exit. change the text file extention to .bat and click yes test comfyui is working well after that install the ipadpater plus repo manually by git cloning it to the custom nodes folder everything should work from here hope this helps |
Well this is the last Runpod.io config what I'm using: #!/bin/bash DEST_DIR_CLIP_VISION="/workspace/ComfyUI/models/clip_vision/" #CLIP_VISION #IPADAPTER #LORAS #UPSCALE_METHODS #CHECKPOINTS #CONTROLNET #VAE #CUSTOM_NODES cd /workspace/ComfyUI/custom_nodes/ComfyUI-AnimateLCM/models/ cd /workspace/ComfyUI/custom_nodes/ComfyUI-AnimateLCM/motion_lora/ python -m pip install -U pip Works very well... :) I hope help you guys... it take a lot of time to download all this resources X_O |
I'm getting this error message every time I run this simple jason file I have tried EVERYTHING LISTED UNDER THIS ISSUE THREAD INCLUDING CLEAN INSTALL!!!!! all im asking is if someone fixed this EXACT error issue. Please help me!!! |
@DarqueLilly, Getting the same. Tried the following code |
@Dheeraj2002 can you explain what ( .py file in what folder ) to edit that line on, Ill try it later today and see if it fixes the issue. I haven't came across that solution. |
help, how can I install it in forge? |
For those who are using Matrix, download the pre-compiled wheel linked in the first few comments (at the time of writing, you needed the python 3.10 version). Tested on Windows, Python 3.10 and ComfyUI |
Hi guys, sorry i know im beating a dead horse here in this conversion but ive tried everything listed in this thread but still have this error message. I tried using the wheel, ive uninstalled onnxruntime/insightface. Re-installed onnxruntime gpu. I've tried downloading it in the manager. I have visual studio etc. I have python 3.11 and running on windows 10. Ive also done a fresh install of comfyui and done all of the above all over again. I'm super lost. I managed to get it running fine on stable diffusion forge a long time ago. I feel like the issue must be something about how insightface is called in comfyui's ipadater faceid but i'm not that technically literate enough to understand. |
ok i have the same issue as diverted by the admin, i am totally new, so some easy lag will help , thanks |
I have done all steps mentioned by cubiq plus installed onnxruntime and onnxruntime-gpu and now comfy moans about invoking this last. Error occurred when executing IPAdapterUnifiedLoaderFaceID: Unable to import dependency onnxruntime. File "D:\ComfyUI\ComfyUI\execution.py", line 152, in recursive_execute on insightface installation i also get an error WARNING: Error parsing dependencies of torchsde: .* suffix can only be used with |
i copy pasted the logs into chat gpt and to be honest , i got it working |
Solved the issue by ... installing Visual Studio to compile the insightface... which did not work but God knows what other stuff did cos retrying to install the precompiled wheel it went ahead (didn't before), then reinstalled onnxruntime and... voila! /shrug |
yes and same chat gpt helped me, the author must now some how integrate the consle of to chatgpt sowhere as we can solve the error that are poped into the consel |
和你一样的情况,但是办公室电脑里面没有装plus V2,就可以正常运行,晚上回去,把V2的插件卸载了再试一下 |
no work for me |
For those who have correctly installed insightface but encounter the error "insightface model is required for FaceID models," I spent over 5 hours resolving this frustrating issue, and I hope this can help others. The problem occurs because the IPAdapter FaceID node encounters an error during operation, but the actual error originates from its preceding loader. However, the plugin misleadingly attributes the error to the IPAdapter FaceID node, which caused significant confusion and wasted at least 4.5 hours in troubleshooting. The loader first reports an error during its operation, and this error occurs only once. The error message was something like "DLL load failed" (I don’t remember the exact wording). Subsequent errors appear in the IPAdapter FaceID and the misleading "insightface model is required for FaceID models" message. What is the "insightface model"? The "insightface model" only appears after the loader processes correctly! The root cause of the issue was that onnx was recently updated to version 1.16.2, which caused FaceID to fail. To resolve this, you need to downgrade to version 1.16.1 (by running pip install onnx==1.16.1 in the appropriate environment/directory) and also set onnxruntime to version 1.18.1 (by running pip install onnxruntime==1.18.1). I found that many people encounter various issues with this plugin, and it is notorious for being difficult to install on forums like ComfyUI_IPAdapter_plus. This plugin, which is highly sensitive to dependencies, oddly does not have a requirements.txt. Perhaps creating a "requirements.txt" file in the custom_nodes\ComfyUI_IPAdapter_plus folder with the following content could serve as a temporary workaround: |
glad you solved, that might help others on windows but I have the latest versions installed and it works just fine so the root of the problem is somewhere else. Maybe the python version
|
I tried to update and install onnx1.16.2 again, and the error reappeared: Traceback (most recent call last): Then downgrading onnx to 1.16.1 solved the problem. It's strange. I tested and encountered this problem in both venv (python 3.10) and embedded (python 3.11). It's strange, but I don't plan to study it further. I just put what I encountered here:( |
I followed the instructions on this video and it worked, after already trying everything else. https://www.youtube.com/watch?v=vCCVxGtCyho |
我找到了一个新的解决办法,跟上面很多人一样,我也是不停地卸载、安装insightface,都没办法正常使用instantid,一直报错,最后我去到C:\Program Files\ComfyUI-aki-v1.3\models\insightface\models\antelopev2 这个文件夹内,发现“1k3d68.onnx”等5个模型文件,被包多了一层文件夹(即放在了C:\Program Files\ComfyUI-aki-v1.3\models\insightface\models\antelopev2\antelopev2 文件夹内),所以导致一直报错,我把5个模型文件放在了C:\Program Files\ComfyUI-aki-v1.3\models\insightface\models\antelopev2 这个文件夹内,就能正常使用instantid了,哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈,解决问题的感觉好爽 |
Error occurred when executing IPAdapterInsightFaceLoader: cannot import name 'builder' from 'google.protobuf.internal' (D:\PR\ComfyUI-aki-v1.3\python\lib\site-packages\google\protobuf\internal_init_.py) File "D:\PR\ComfyUI-aki-v1.3\execution.py", line 152, in recursive_execute Problem with "protobuf"? Checked, "D:\PR\ComfyUI-aki-v1.3\python\lib\site-packages\google\protobuf\internal_init_.py" is an empty file. Has anyone experienced this problem? How to solve it? |
i have installed insightface successfully..but still InsightFaceLoader and IPAdapterApplyFaceID nodes are misssing.. @MMoneer |
I have followed in the installation guide lines. Installed all the appropriate files in ComfyUI environment, updated Comfy and still get the same error.
Running Comfy on Mac Studio M2 Ultra.
The text was updated successfully, but these errors were encountered: