ManglerFTW / ComfyI2I

ComfyI2I is a set of custom nodes for ComfyUI that help with image 2 image functions.
Other
158 stars 16 forks source link

ERROR: Expected all tensors to be on the same device #19

Open sedetweiler opened 1 year ago

sedetweiler commented 1 year ago

Running into this error on the node and can't seem to get around it. I am NOT using any flags like -medvram in the launcher for comfy.

Error occurred when executing ImageCompositeMasked:

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

File "D:\stable_diffusion\ComfyUI\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\stable_diffusion\ComfyUI\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\stable_diffusion\ComfyUI\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\stable_diffusion\ComfyUI\ComfyUI\comfy_extras\nodes_mask.py", line 90, in composite
output = composite(destination, source.movedim(-1, 1), x, y, mask, 1, resize_source).movedim(1, -1)
File "D:\stable_diffusion\ComfyUI\ComfyUI\comfy_extras\nodes_mask.py", line 35, in composite
source_portion = mask * source[:, :, :visible_height, :visible_width]