问答墙

Error occurred when executing InsightFaceLoader

朋远方 发布于 4个月前 分类:提问

运行faceID的时候出现了下面的报错:

Error occurred when executing InsightFaceLoader: Unable to import dependency onnxruntime. File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 154, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\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 "E:\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 "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 529, in load_insight_face raise Exception(e)

 

请问该如何解决?

1个回复

  • 朋远方的头像

    这个错误信息表明在执行 InsightFaceLoader 时遇到了一个问题,具体是无法导入依赖库 onnxruntime。这通常是因为相应的Python库没有正确安装或者环境配置不正确导致的。

    通常情况下可以通过“pip install onnxruntime”命令来安装这个依赖库,但是在comfyui中由于是独立的一个虚拟环境,所以需要进入到“\ComfyUl_windowsportable\python_embeded>”目录后,运行“Scripts pip install onnxruntime”命令才可以正确安装该依赖库!

    20240106171717