comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
49.77k stars 5.24k forks source link

ERROR : module 'keras.backend' has no attribute 'is_tensor' #3664

Closed makeoo1 closed 2 months ago

makeoo1 commented 3 months ago

I tried to install a custom node and after running the -r requirements of that node ( which now i have deleted ) i am now getting some errors when running comfyui. node link: https://github.com/AIGODLIKE/ComfyUI-ToonCrafter/blob/main/ToonCrafter/requirements.txt

At first comfyui wasn't opening at all due to "unclear error" or something similar reported in console. I had to reinstall the requirements but then i was getting the CUDA error so i used pip uninstall torch and then reinstall by now I am getting this errors and some custom nodes are not loading. I have tried to pip install tensor but didn't fix it.

i have attached my console log as well here is the full list of requiremets that i installed that lead to this error: decord==0.6.0 einops==0.3.0 imageio==2.9.0 numpy==1.24.2 omegaconf==2.1.1 opencv_python pandas==2.0.0 Pillow==9.5.0 pytorch_lightning==1.9.3 PyYAML==6.0 setuptools==65.6.3 torch==2.0.0 torchvision tqdm==4.65.0 transformers==4.25.1 moviepy av xformers gradio timm scikit-learn open_clip_torch==2.22.0 kornia

image image image image

log.txt

makeoo1 commented 3 months ago

UPDATE: i did manage to get rid of the error by uninstalling all the dependencies above and then reinstalling what needed from the comfyu ui requirements.txt

i think one of these may have caused the is_tesnsor error: decord==0.6.0 einops==0.3.0 omegaconf==2.1.1 opencv_python setuptools==65.6.3 moviepy av timm

the problem now is that i am getting few "import failed" error image

When i run -r requirements in the custom nodes folder that are faling to impot i get that all the requirements are already satisfied BUT i am unable to install Insightface due to an error

find attached my console log file

log 2.txt

AngryLoki commented 3 months ago

@makeoo1 , someone needs to specify einops>=0.7.0 in requirements.txt. Ideally ComfyUI, and comfyui_controlnet_aux and ComfyUI-ToonCrafter.

Reference: https://github.com/PKU-YuanGroup/Open-Sora-Plan/pull/105/files

makeoo1 commented 3 months ago

@AngryLoki thx a lot dude! right now i got the 0.8 version installed and as i was saying the "keras.backend" error is fixed. Should i downgrade to 0.7?

the problem now is that i can't get those custom nodes to work even tho i have run the -r rquirements of each all of them individually and all the requiremets results as satisfied image

maybe i should open another issue for this, i don't know

mcmonkey4eva commented 2 months ago

Made a meta-issue for requirements.txt versioning #3679