mav-rik/facerestore_cf

The node is not working

Opened this issue ยท 0 comments

ikly commented

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