sipherxyz / comfyui-art-venture

157 stars 38 forks source link

(IMPORT FAILED) comfyui-art-venture AV_ControlNet Preprocessor node missing #13

Open unique15 opened 10 months ago

unique15 commented 10 months ago

Hi, No matter what I do, I can't get this "ControlNet Preprocessor" node inside my loaded workflow. Whenever I load the workflow I get this error. AV controlnet preprocessors

When I go to install missing nodes I get this "Import Failed" error. import failed

I am running a SDXL comfyui on RunPod. With RTX 3090, 9 vCPU 37 GB RAM, 12.1 Cuda Core.

I would greatly appreciate if you can help fix this issue.

unique15 commented 10 months ago

Hi, I tried a fix and it worked. I will share the same here.

Basically, we need to install two packages before we do anything- "segment anything" and "omegaconf". This should be inside your comfyUI installation folder where you are installing rest of the packages. On my runpod machine I had this path like this "workspace/ComfyUI/venv/lib/python3.10/site-packages" I have seen on the discord where people are running comfyUI portable on local machine and their path looked like this " comfyui_windows portable/python_embeded/lib/site_packages" So you match this path in your machine and once you are inside your site packages folder. open CMD and run these pip install commands without [] brackets.

[pip install segment_anything]

[pip install omegaconf]

After installing these, update "controlnet auxillary prerocessor" and "comfyui-art-venture" same as you do using comfyUI "manager".

Restart webUI.

Load the same workflow that gives error. It should be gone.

Garv6907 commented 10 months ago

Hi currently I am facing the same issue, I have resolved this issue following your steps but however there is a certain issue that i must tell. whenever I close Comfyui and reopen it the custom node says the exact same thing as posted above in the issue and when I click on try update/try fix and reboot the server the issue resolves. Also all the preprocessors which I find other users are having, I do not see a single one of them One such user says that there a several preprocessors to choose from and it automaticlly installs the corresponding preprocessor choosen

ammarshow commented 8 months ago

same issue here !!!! even after trying [pip install segment_anything] [pip install omegaconf]

Dark-Jake commented 8 months ago

Hello, I've come to bring you the definitive solution to this error. The first thing you need to know is that this error is due to an issue with the segment-anything library. To fix it, the first thing you should do is try the solution provided above:

pip install segment_anything
pip install omegaconf

If you've done that and it didn't work, simply download the repository from "https://github.com/facebookresearch/segment-anything" as a .zip file. Once downloaded, extract it, and the only thing we're interested in is the folder called segment-anything. image

Copy this folder to the directory ComfyUI_windows_portable\python_embeded\Lib\site-packages if you're using the portable version. If you have the other version, you should copy it to the directory C:\Users\PC\AppData\Local\Programs\Python\Python310\Lib\site-packages. image

Once you've done this, just restart ComfyUI, and you shouldn't encounter that error again. I hope this solution helps; it did for me.

revolutioncom123 commented 8 months ago

you are a god, thank you!!! :)

fuzzydee-ds9 commented 3 months ago

For me the reinstalls didn't work, so I looked in the _ComfyUI_windows_portable\ComfyUI\customnodes folder and noticed the dir names differ:

I renamed the folder (in windows mind you) from comfyui-art-venture to ComfyUI-Art-Venture and voila.. Sometimes it is the small things

tiomraida commented 2 weeks ago

@fuzzydee-ds9 you saved my life lol ty