kijai / ComfyUI-CogVideoXWrapper

750 stars 45 forks source link

How to fix "too many indices for tensor of dimension 4"? #178

Open BoosterCore opened 1 week ago

BoosterCore commented 1 week ago

I tried cogvideox_I2V_example_01.json, and the image is 720X480, but...

CogVideoImageEncode Node got this error :"too many indices for tensor of dimension 4"

Screenshot 2024-10-25 101500

BoosterCore commented 1 week ago

Finally, turn off "enable_tiling" in CogVideo ImageEncode node solved my problem.

Mikerhinos commented 1 week ago

I have the same error, unchecking enable_tiling didn't help :/

kijai commented 1 week ago

This is possibly because of the fix for the tiled_encode for diffusers 0.31.0, maybe it broke it for the old ones, works for me on the latest version of the nodes and diffusers though.

Mikerhinos commented 1 week ago

I activated the tiled decoding and it worked (I also changed other settings so it may be another one, anyway now it's working for me too).

yovsac commented 1 week ago

Still not working for me after disabling tiling, any other ideas??

kijai commented 1 week ago

Still not working for me after disabling tiling, any other ideas??

With the nodes and diffusers both at latest version?

yovsac commented 1 week ago

The custom nodes and comfy are the latest. How do I check the diffusers?

kijai commented 1 week ago

The custom nodes and comfy are the latest. How do I check the diffusers?

Depends on how your comfy is setup, you'd do pip show diffusers:

For portable: image

And to update:

python_embeded\python.exe -m pip install -U diffusers

Anyway I updated the nodes now with possible backwards compatibility version, so that might work for you as well.

yovsac commented 1 week ago

Thank you it seems to work now, probably due to your latest update. 👍👍

p80ric commented 1 week ago

Also had the issue but fixed now!

yovsac commented 1 week ago

The custom nodes and comfy are the latest. How do I check the diffusers?

Depends on how your comfy is setup, you'd do pip show diffusers:

For portable: image

And to update:

python_embeded\python.exe -m pip install -U diffusers

Anyway I updated the nodes now with possible backwards compatibility version, so that might work for you as well.

It turns out I have diffusers 0.30.0

When I try to update it with the command you gave me, I get a window saying " This app cant run on your pc" to find a version for your PC, check the software publisher. Is it a problem with Python? or something else?