-
-
Notifications
You must be signed in to change notification settings - Fork 315
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. |
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 |
This is the reason why my insightface cannot be loaded. Thank you very much for your help. requirements.txt is very useful. Thank you. |
File "D:\ComfyUI_windows_portable - Copia\ComfyUI\custom_nodes\comfyui-reactor-node_init_.py", line 23, in |
I managed to solve the problem with your comments. I installed a new ComfyUI to clarify what the problem is.
|
大家有ip-adapter的requirement.txt么 |
Just a hint for everyone getting install errors... Maybe this will help one of you too! I had nearly all the install errors listed above and you possible could find on google 🤣 and NONE of the solution provided all over the places I searched helped at ALL and I tried a LOT. After all the struggle I tough, maybe my download is corrupted... and VOILA, that was it! First try and no install errors. Go to https://github.com/Gourieff/Assets/tree/main/Insightface DO NOT right click on the file name and save as! It will not download the file correctly! Instead, left click on the filename and on the right, next to "Raw" click on the down-arrow which says on hoover "Download raw file" and click this one to download the file. The file via right click "save as" was only 300+kb while the downloaded file was over 800kb... 🤷♂️ Good luck and have a nice one |
That was it! Thank you. |
still dont work plz help ! :( PS D:\ComfyUI_windows_portable> python_embeded\python.exe -m pip install -U pip × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
then restart the server, try it |
I had to manually install Cython: python_embeded\python.exe -m pip install Cython I also had to install Python 3.12.7 (which is the version of my Then, for Cython to be able to actually find the Python header files and libraries, I had to create a [build_ext]
include_dirs='C:\Program Files\Python312\include;path/to/ComfyUI_windows_portable\python_embeded\Lib\site-packages\numpy\core\include'
library_dirs='C:\Program Files\Python312\libs' Then, |
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: