StartHua / Comfyui_CXH_joy_caption

Recommended based on comfyui node pictures:Joy_caption + MiniCPMv2_6-prompt-generator + florence2
Apache License 2.0
452 stars 27 forks source link

Fix crash on multi GPU systems #23

Open q5sys opened 3 months ago

q5sys commented 3 months ago

On Dual GPU systems you can run into the following error:

!!! Exception during processing !!! Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! (when checking argument for argument tensors in method wrapper_CUDA_cat)

This PR addresses that issue by ensuring that the tensors are all loaded on the same device.