kijai / ComfyUI-LivePortraitKJ

ComfyUI nodes for LivePortrait
MIT License
1.66k stars 127 forks source link

这个错误是什么引起的?Error occurred when executing LivePortraitProcess: #73

Closed biu5332 closed 4 months ago

biu5332 commented 4 months ago

Error occurred when executing LivePortraitProcess:

OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\imgwarp.cpp:2723: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'cv::warpAffine'

File "D:\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\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 "D:\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\PR-ComfyUI-LivePortraitKJ-b5136176\nodes.py", line 260, in process cropped_frames, full_frame = pipeline.execute(img, driving_images_np) File "D:\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\PR-ComfyUI-LivePortraitKJ-b5136176\liveportrait\live_portrait_pipeline.py", line 98, in execute mask_ori = _transform_img(inference_cfg.mask_crop, crop_info['M_c2o'], dsize=(img_rgb.shape[1], img_rgb.shape[0])) File "D:\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\PR-ComfyUI-LivePortraitKJ-b5136176\liveportrait\utils\crop.py", line 30, in _transform_img return cv2.warpAffine(img, M[:2, :], dsize=_dsize, flags=flags)

kijai commented 4 months ago

Should be fixed by now.