Kosinkadink / ComfyUI-AnimateDiff-Evolved

Improved AnimateDiff for ComfyUI and Advanced Sampling Support
Apache License 2.0
2.3k stars 177 forks source link

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #379

Closed metahades18892 closed 1 month ago

metahades18892 commented 1 month ago

hello, solution for this?

File "C:\Users\kevin\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module_ad.py", line 1112, in forward x = x + self.pe[:, : x.size(1)] ^~~ RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Kosinkadink commented 1 month ago

There's an issue already open for this problem, we can keep discussing there: https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved/issues/372

metahades18892 commented 1 month ago

The problem was one of the node configurations was done incorrectly, it has already been solved