EeroHeikkinen / ComfyUI-eesahesNodes

eesahe's ComfyUI Flux ControlNet Utils
51 stars 6 forks source link

If batch_size on flux_dev with controlnet-union >1 there are an error #18

Open ShmuelRonen opened 1 week ago

ShmuelRonen commented 1 week ago

File "/home/sam/ComfyUI/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl return forward_call(*args, kwargs) File "/home/sam/ComfyUI/custom_nodes/ComfyUI-eesahesNodes/controlnet/controlnet_instantx_format2.py", line 227, in forward return self.forward_orig(img, img_ids, hint, context, txt_ids, timesteps, y, guidance, control_type) File "/home/sam/ComfyUI/custom_nodes/ComfyUI-eesahesNodes/controlnet/controlnet_instantx_format2.py", line 150, in forward_orig txt = torch.cat([emb_controlnet_mode, txt], dim=1) RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 1 but got size 2 for tensor number 1 in the list.**

Prompt executed in 22.86 seconds

The batch_size set to 2