-
-
Notifications
You must be signed in to change notification settings - Fork 233
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. |
hjx, i use comfyui in Matrix. it't dont folder "python_embeded". can i install insightface where is it? thanks. |
Problem when using FACEID PLUS SD1.5ONLY, no problem when using FACEID PLUS V2
|
@cubiq Is there any solution available for this issue? Thanks for help! :) |
I am getting the same issue as many here. InsightFace is missing . It's installed for sure. Did clean install and all other suggestions but nothing is working. Any ideas? Error occurred when executing IPAdapterAdvanced: insightface model is required for FaceID models File "D:\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute |
Error occurred when executing IPAdapterAdvanced: Error(s) in loading state_dict for ImageProjModel: File "D:\ComfyUI-aki-v1.1\execution.py", line 151, in recursive_execute |
Is happening for me too. I think the "problem" for me is that I don't have an embeded_python folder, because I installed python back when I had A1111. i tried to make the -m pip install "pathtofiley\insightface-0.7.3-cp310-cp310-win_amd64.whl" onnxruntime and Python says it is already installed. I Forced a reinstall and nothing. I tried to make the install from the python root folder (where python.exe is) too, and nothing. Please, help. |
这个是哪里有问题,[rgthree] Using rgthree's optimized recursive execution. !!! Exception during processing !!! Traceback (most recent call last): File "D:\workspace\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\workspace\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\workspace\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\workspace\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 597, in apply_ipadapter raise Exception("Missing CLIPVision model.") Exception: Missing CLIPVision model. Prompt executed in 0.33 seconds |
Has anyone been able to install |
Sometimes, setting the CFLAGS environment variable to include the NumPy headers can help: The above worked for me |
I on Mac Studio M2 Ultra, MacOs 14.4.1. I have found the absolute BEST way to run Comfy is via Pinokio. I have been using all the IPAdapter FaceID nodes with ReActor enabled for quite sometime now. The key to getting the unified loaders to work is install clip vision models thru Manger's Install Models. Pinokio will load all your dependencies (Homebrew, Python, MiniConda) in a virtual environment. I can't remember which .json file it's in, but i modified the start up to launch without fp-16. MacOS 14.4 broke all the non SDE samplers and some other stuff. Gave up on running Comfy thru Warp/terminal. |
I spent a while on this (on Runpod) but this one worked for me! |
Thanks for writing out all of the
There's an extra space after |
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. |
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: