was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

Image Paste Face not enough values to unpack (expected 4, got 2)

Open DarkAlchy opened this issue 1 year ago • 2 comments

Traceback (most recent call last): File "F:\ComfyUI\execution.py", line 327, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\execution.py", line 202, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\execution.py", line 174, in _map_node_over_list process_inputs(input_dict, i) File "F:\ComfyUI\execution.py", line 163, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 3262, in image_paste_face result_image, result_mask = self.paste_image(tensor2pil(image), tensor2pil(crop_image), crop_data, crop_blending, crop_sharpening) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "F:\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 3299, in paste_image crop_size, (top, left, right, bottom) = crop_data ^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 4, got 2)

Not sure if it is me or the node is broken as I just hooked images to their respective connection points without any info. Have any idea what might be wrong?

DarkAlchy avatar Feb 10 '25 16:02 DarkAlchy

Crop data input must come from a cropping node that provides a tuple that is (crop_size, (top, left, right, bottom))

WASasquatch avatar Feb 10 '25 19:02 WASasquatch

Which node would that be?

DarkAlchy avatar Feb 11 '25 01:02 DarkAlchy