Kosinkadink / ComfyUI-Advanced-ControlNet

ControlNet scheduling and masking nodes with sliding context support
GNU General Public License v3.0
616 stars 61 forks source link

Use 3 controlnet++ :Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #136

Closed xueqing0622 closed 4 months ago

xueqing0622 commented 4 months ago

Use 2 controlnet++ : no problem Use 3 controlnet++ : error like this File "F:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control_plusplus.py", line 196, in forward guided_hint = self.union_controlnet_merge(hint, control_type, emb, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control_plusplus.py", line 167, in union_controlnet_merge feat_seq += self.task_embedding[indexes[idx][0]] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

Kosinkadink commented 4 months ago

Thank you for submitting the log file, it's an issue with lowvram, I'll push out a fix soon.

Kosinkadink commented 4 months ago

lowvram issues for ControlNet++ should now be resolved