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

TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first. #43

Open
alboto opened this issue Aug 20, 2024 · 0 comments

Comments

@alboto
Copy link

alboto commented Aug 20, 2024

when ComfyUI use param --gpu-only will get this error

08-20 13:17:08.107 Traceback (most recent call last):
08-20 13:17:08.107 File "/app/plugins/comfyui/execution.py", line 81, in map_node_over_list
08-20 13:17:08.107 results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
08-20 13:17:08.107 File "/app/plugins/comfyui/custom_nodes/comfyui-art-venture/modules/postprocessing/color_correct.py", line 64, in color_correct
08-20 13:17:08.107 tensor_image = image[b].numpy()
08-20 13:17:08.107 TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
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

1 participant