Skip to content
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

The node is not working #13

Open
ikly opened this issue Jan 7, 2024 · 0 comments
Open

The node is not working #13

ikly opened this issue Jan 7, 2024 · 0 comments

Comments

@ikly
Copy link

ikly commented Jan 7, 2024

The node is not working and the following error message is displayed.

Error occurred when executing FaceRestoreCFWithModel:

OpenCV(4.7.0) 👎 error: (-5:Bad argument) in function 'resize'

Overload resolution failed:

  • src data type = 23 is not supported
  • Expected Ptr for argument 'src'

File "C:\Users\iwoul\OneDrive\Documents\ai\test\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iwoul\OneDrive\Documents\ai\test\ComfyUI_windows_portable\ComfyUI\execution.py", line 84, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iwoul\OneDrive\Documents\ai\test\ComfyUI_windows_portable\ComfyUI\execution.py", line 77, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\iwoul\OneDrive\Documents\ai\test\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf_init_.py", line 151, in restore_face
self.face_helper.get_face_landmarks_5(only_center_face=False, resize=640, eye_dist_threshold=5)
File "C:\Users\iwoul\OneDrive\Documents\ai\test\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf\facelib\utils\face_restoration_helper.py", line 148, in get_face_landmarks_5
input_img = cv2.resize(self.input_img, (w, h), interpolation=interp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

please help me

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

1 participant