bash-j / mikey_nodes

comfy nodes from mikey
MIT License
115 stars 15 forks source link

Error occurred when executing FaceFixerOpenCV: operands could not be broadcast together with shapes (1,4) (0,) #30

Open Vigilence opened 5 months ago

Vigilence commented 5 months ago

I often get this error when the node FaceFixerOpenCV is being used and I don't understand why. Included the workflow.

workflow-fast-creator-v104.json

Error occurred when executing FaceFixerOpenCV:

operands could not be broadcast together with shapes (1,4) (0,) 

  File "I:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "I:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "I:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "I:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\custom_nodes\mikey_nodes\mikey_nodes.py", line 3458, in run
    faces = self.combo_detection(image, scale_factor, min_neighbors)
  File "I:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\custom_nodes\mikey_nodes\mikey_nodes.py", line 3421, in combo_detection
    if front_faces == () and profile_faces == () and anime_faces == ():
bash-j commented 5 months ago

Hi Vigilence, are you using batch size > 1?

Vigilence commented 5 months ago

Hi bash-j! I’m using batch size 10 for this workflow. I then select one of the images and the workflow continues moving forward with only that image I picked.

michaelLochlann commented 2 hours ago

I'm also getting this using batch size 1

michaelLochlann commented 2 hours ago

It seems that it is missing the last number in the matrix (2nd number of the 2nd 2 numbers is blank)