nde2024 发表于 2024-5-4 16:52:59

一张图扩增全角度-ComfyUI-FaceAnalysis报错-已解决

本帖最后由 nde2024 于 2024-5-5 20:21 编辑



坛主分享的》一张图扩增全角度 ComfyUI工作流-FaceAnalysis报错。

有谁知道如何解决吗?


Error occurred when executing InstantIDFaceAnalysis:FaceAnalysis.__init__() got an unexpected keyword argument 'providers'File "E:\ComfyUI\ComfyUI-aki-v1.1\execution.py", line 155, in recursive_executeoutput_data, output_ui = get_output_data(obj, input_data_all)File "E:\ComfyUI\ComfyUI-aki-v1.1\execution.py", line 85, in get_output_datareturn_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)File "E:\ComfyUI\ComfyUI-aki-v1.1\execution.py", line 78, in map_node_over_listresults.append(getattr(obj, func)(**slice_dict(input_data_all, i)))File "E:\ComfyUI\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_InstantID\InstantID.py", line 202, in load_insight_facemodel = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=) # alternative to buffalo_l

感谢指点。

滚石 发表于 2024-5-4 22:15:44

缺失的模块都安装了吗

nde2024 发表于 2024-5-4 23:07:05

本帖最后由 nde2024 于 2024-5-5 03:51 编辑

滚石 发表于 2024-5-4 22:15
缺失的模块都安装了吗
感谢回复

应该都安装了。

我把instantid资源目录里,所有的文件都放入了ComfyUI\models\目录下了。

具体包括:

目录checkpoints
LEOSAM HelloWorld 新世界 _ SDXL真实感大模型_v5.0.safetensors

目录controlnet\instantid\
ControlNetModel_config.json
diffusion_pytorch_model.safetensors

目录insightface\models\antelopev2
1k3d68.onnx
2d106det.onnx
genderage.onnx
glintr100.onnx
scrfd_10g_bnkps.onnx

目录instantid
ip-adapter.bin

目录ipadapter
ip-adapter-plus_sd15.bin

缺失的节点,在Manager的 Install Missing Custom Node里自动安装了。

ComfyUI InstantID ( Native Support) 在 Install Custom Nodes里安装了。

ComfyUI 内核更新到最新了。

但运行工作流时,到FaceAnalysis节点时,就报错Error occurred when executing InstantIDFaceAnalysis:FaceAnalysis.__init__() got an unexpected keyword argument 'providers'File "

我在https://github.com/deepinsight/insightface找到:

InsightFace is an open source 2D&3D deep face analysis toolbox, mainly based on PyTorch and MXNet.

Please check our website for detail.

The master branch works with PyTorch 1.6+ and/or MXNet=1.6-1.8, with Python 3.x.

用秋叶启动器 高级选项->环境维护->安装了 pyTorch -> Torch 2.3.0(cuda 12.1)+ xFormers 0.0.26.post1 + Python 3.11.6,报错后又再次安装了Torch 2.0.1(cuda 11.8)+ xFormers 0.0.21,结果启动器无法启动了。全部重新装的ComfyUI


后来我在https://github.com/cubiq/ComfyUI_InstantID,看到


Installation

1. Upgrade ComfyUI to the latest version!
2. Download or git clone this repository into the ComfyUI/custom_nodes/ directory or use the Manager.
3. InstantID requires insightface, you need to add it to your libraries together with onnxruntime and onnxruntime-gpu.
4. The InsightFace model is antelopev2 (not the classic buffalo_l). Download the models, unzip and place them in the ComfyUI/models/insightface/models/antelopev2 directory.
5. The main model can be downloaded from HuggingFace and should be placed into the ComfyUI/models/instantid directory. (Note that the model is called ip_adapter as it is based on the IPAdapter).
6. You also needs a controlnet, place it in the ComfyUI controlnet directory.
7. Remember at the moment this is only for SDXL.


我已经完全达成了上述条件,但还是:
Error occurred when executing InstantIDFaceAnalysis:
FaceAnalysis.__init__() got an unexpected keyword argument 'providers'
File "E:\ComfyUI\ComfyUI\execution.py", line 151, in recursive_executeoutput_data, output_ui = get_output_data(obj, input_data_all)File "E:\ComfyUI\ComfyUI\execution.py", line 81, in get_output_datareturn_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)File "E:\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_listresults.append(getattr(obj, func)(**slice_dict(input_data_all, i)))File "E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 202, in load_insight_facemodel = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=) # alternative to buffalo_l
请求指点一下,谢谢。

nde2024 发表于 2024-5-5 20:23:28

本帖最后由 nde2024 于 2024-5-5 20:31 编辑


问题总结》 insightface 版本过低

解决办法》insightface 版本升级到 0.7.3

nicyy 发表于 2024-5-7 16:28:22

nde2024 发表于 2024-5-5 20:23
问题总结》 insightface 版本过低

解决办法》insightface 版本升级到 0.7.3

你好,请教一下,升级了insightface之后,我的又出现这个问题,您有办法解决吗?

Error occurred when executing IPAdapterUnifiedLoader:
IPAdapter model not found.

IPAdapter模型我明明是有的

nde2024 发表于 2024-5-7 23:00:54

本帖最后由 nde2024 于 2024-5-7 23:06 编辑

nicyy 发表于 2024-5-7 16:28
你好,请教一下,升级了insightface之后,我的又出现这个问题,您有办法解决吗?

Error occurred when e ...
你好,

滚石坛主分享的那个工作流里面没有用到 IPAdapter 节点/模型, 他用的是InstantID,你是不是节点加载错了?




从你给出的错误信息来看,你的工作流里面应该是添加了 IPAdapter节点,但是没有加载相应的 IPAdapter模型。





cfmmx 发表于 2024-5-8 12:32:23

nde2024 发表于 2024-5-5 20:23
问题总结》 insightface 版本过低

解决办法》insightface 版本升级到 0.7.3

请问insightface怎样才能升级?多谢指教!

zero27 发表于 2024-5-8 13:30:02

我也遇到同样的问题
升级了版本也是报错,安装不了,
提示Building wheel for dlib (pyproject.toml) ...
error: subprocess-exited-with-error
Building wheel for dlib (pyproject.toml) did not run successfully. exit code: 1
> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error
ERROR: Failed building
wheel for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
ニニニニニニニュ
[程序异常退出,退出代码为 1 (0x00000001)]
在线寻求解决方法 谢谢

cfmmx 发表于 2024-5-9 01:49:57

nde2024 发表于 2024-5-5 20:23
问题总结》 insightface 版本过低

解决办法》insightface 版本升级到 0.7.3

请问在哪里可以升级,在管理器中升级吗?还是在其他地方升级?谢谢!

nde2024 发表于 2024-5-9 03:42:10

cfmmx 发表于 2024-5-8 12:32
请问insightface怎样才能升级?多谢指教!

通常使用命令:

python.exe -m pip install Insightface==0.7.3

页: [1] 2
查看完整版本: 一张图扩增全角度-ComfyUI-FaceAnalysis报错-已解决