Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Vigilence opened this issue Jun 21, 2024 · 4 comments

Comments

@Vigilence
Copy link

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
Copy link
Owner

bash-j commented Jun 21, 2024

Hi Vigilence, are you using batch size > 1?

@Vigilence
Copy link
Author

Vigilence commented Jun 22, 2024

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
Copy link

I'm also getting this using batch size 1

@michaelLochlann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants