cubiq / ComfyUI_InstantID

Apache License 2.0
945 stars 50 forks source link

(IMPORT FAILED) ComfyUI InstantID (Native Support) #161

Closed BinglunWang closed 1 month ago

BinglunWang commented 1 month ago

Hi,

I'm writing to ask a solution for import failed issue for comfyUI InstantID. I tried to install comfyUI InstantID by git clone and comfyUI manager. But it still does not work.

Here's my device and environment information for your convenience:

Thank you so much in advance!

cubiq commented 1 month ago

without an error message it's impossible to say. probably insightface failed to install

BinglunWang commented 1 month ago

Screenshot from 2024-05-22 18-41-10

Thanks for your reply. Here's my screenshot

cubiq commented 1 month ago

that unfortunately doesn't tell us much, we need the actual error message from the console

BinglunWang commented 1 month ago

that unfortunately doesn't tell us much, we need the actual error message from the console

Thanks. May I know how to get error messages from the console.

If it's use "queue prompt", The above figure may be the all error message I have. Because I cannot use any InstantID nodes (e.g. instant ID) as I cannot import InstantID .

Another examples: I tried to load from a created workflow are these: Screenshot from 2024-05-22 19-14-30

additional information: I tried update comfyUI version before I try to use instantID

cubiq commented 1 month ago

we the the actual backtrace from the terminal window

BinglunWang commented 1 month ago

I see. Thanks!

Here's the error when I try to fix instant ID in comfyUI:

https://paste.ubuntu.com/p/2TxhKgkBK6/

cubiq commented 1 month ago

your pc was not able to build the dependency, it's hard to say what is missing, maybe the build-essentials since you are on ubuntu

BinglunWang commented 1 month ago

Thank you for your reply. That's a pity.

Shall I close this issue or keep open?

cubiq commented 1 month ago

you can install the missing dependencies with apt install build-essential

BinglunWang commented 1 month ago

I tried sudo apt install build-essential. But seems it's already a newest version.

build-essential is already the newest version (12.9ubuntu3). The following packages were automatically installed and are no longer required: libnvidia-container-tools libnvidia-container1 Use 'sudo apt autoremove' to remove them. 0 to upgrade, 0 to newly install, 0 to remove and 47 not to upgrade.

Laisvydas3030 commented 1 month ago

same problem on Windows

BinglunWang commented 1 month ago

same problem on Windows

Can you also provide the details?

freakAccidentCrustacean commented 1 month ago

Had the same problem on windows, for anyone else seeing this. CMD error was that insightface was missing.

Used this instruction from reddit and it fixed the problem :

From the ComfyUI root folder (where you have "webui-user.bat" file) check the version of Python aka run CMD and type "python_embeded\python.exe -V"

Depending on Python version (3.10 or 3.11) download prebuilt Insightface package to ComfyUI root folder: Python 3.10: https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl Python 3.11: https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl

Install latest pip version: "python_embeded\python.exe -m pip install -U pip"

Install Insightface: Python 3.10: "python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl" Python 3.11: "python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl

HydraBucket commented 1 month ago

Had the same problem on windows, for anyone else seeing this. CMD error was that insightface was missing.

Used this instruction from reddit and it fixed the problem :

From the ComfyUI root folder (where you have "webui-user.bat" file) check the version of Python aka run CMD and type "python_embeded\python.exe -V"

Depending on Python version (3.10 or 3.11) download prebuilt Insightface package to ComfyUI root folder: Python 3.10: https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl Python 3.11: https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl

Install latest pip version: "python_embeded\python.exe -m pip install -U pip"

Install Insightface: Python 3.10: "python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl" Python 3.11: "python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl

Youre a legend. This fixed my issue.