Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
metahades18892 opened this issue May 17, 2024 · 1 comment

Comments

@metahades18892
Copy link

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!

@LILILIBIU
Copy link

This is the internal behavior of the plugin and has nothing to do with ComfyUI itself. If you want to use this plugin normally, you should move the relevant tensor to the CPU before the code error occurs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants