WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

[FR]blend batch:1+batch and batch+batch #301

Open YacratesWyh opened 9 months ago

YacratesWyh commented 9 months ago

Currently you can only blend latent with batch, but cannot blend image in Image Blending Node. I've tested 1 add batch and batch add batch, both failed. Could this be fixed?

Traceback (most recent call last): File "/home/admin188/AI/webui/ComfyUI/execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/home/admin188/AI/webui/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 "/home/admin188/AI/webui/ComfyUI/execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "/home/admin188/AI/webui/ComfyUI/custom_nodes/was-node-suite-comfyui/WAS_Node_Suite.py", line 4093, in image_blending_mode img_a = tensor2pil(image_a) File "/home/admin188/AI/webui/ComfyUI/custom_nodes/was-node-suite-comfyui/WAS_Node_Suite.py", line 352, in tensor2pil return Image.fromarray(np.clip(255. image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8)) File "/home/admin188/anaconda3/envs/fooocus/lib/python3.10/site-packages/PIL/Image.py", line 2955, in fromarray raise TypeError("Cannot handle this data type: %s, %s" % typekey) from e TypeError: Cannot handle this data type: (1, 1, 512, 3), |u1

WASasquatch commented 9 months ago

Most the image nodes are designed for single images. I've updated some but haven't gotten around to all it.