deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
查看: 649|回复: 12

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

[复制链接]

4

主题

38

帖子

405

积分

初级丹师

Rank: 3Rank: 3

积分
405
 楼主| 发表于 2024-5-4 16:52:59 | 显示全部楼层 |阅读模式
星级打分
  • 1
  • 2
  • 3
  • 4
  • 5
平均分:NAN  参与人数:0  我的评分:未评
本帖最后由 nde2024 于 2024-5-5 20:21 编辑



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

有谁知道如何解决吗?
111.JPG

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=[provider + 'ExecutionProvider',]) # alternative to buffalo_l

感谢指点。
回复

使用道具 举报

208

主题

1981

帖子

59万

积分

管理员

Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96Rank: 96

积分
599214

隐世金马甲勋章超级版主勋章可爱萌新勋章见习版主勋章荣誉会员勋章男同管理员-无尚荣耀勋章优质版主勋章小有贡献勋章

发表于 2024-5-4 22:15:44 | 显示全部楼层
缺失的模块都安装了吗
提供数字人直播服务、文字/音频驱动数字人服务,有意者联系我QQ563861181
全站默认解压密码dfldata.xyz
DFL交流QQ群519316315
AI绘画交流QQ群710238550
我的B站账号:特看科技的滚石   其他自称彦祖的不是我,请勿上当
回复 支持 反对

使用道具 举报

4

主题

38

帖子

405

积分

初级丹师

Rank: 3Rank: 3

积分
405
 楼主| 发表于 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_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\ComfyUI\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 "E:\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.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_face
model = FaceAnalysis(name="antelopev2", root=INSIGHTFACE_DIR, providers=[provider + 'ExecutionProvider',]) # alternative to buffalo_l

请求指点一下,谢谢。
回复 支持 反对

使用道具 举报

4

主题

38

帖子

405

积分

初级丹师

Rank: 3Rank: 3

积分
405
 楼主| 发表于 2024-5-5 20:23:28 | 显示全部楼层
本帖最后由 nde2024 于 2024-5-5 20:31 编辑


问题总结》 insightface 版本过低

解决办法》insightface 版本升级到 0.7.3
回复 支持 反对

使用道具 举报

0

主题

1

帖子

10

积分

初级丹童

Rank: 1

积分
10
发表于 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模型我明明是有的
回复 支持 反对

使用道具 举报

4

主题

38

帖子

405

积分

初级丹师

Rank: 3Rank: 3

积分
405
 楼主| 发表于 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,你是不是节点加载错了?

InstantID.JPG


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

IPAdapter.JPG



回复 支持 反对

使用道具 举报

25

主题

201

帖子

3470

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
3470

万事如意节日勋章

发表于 2024-5-8 12:32:23 | 显示全部楼层
nde2024 发表于 2024-5-5 20:23
问题总结》 insightface 版本过低

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

请问insightface怎样才能升级?多谢指教!
回复 支持 反对

使用道具 举报

0

主题

1

帖子

10

积分

初级丹童

Rank: 1

积分
10
发表于 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)]
在线寻求解决方法 谢谢
回复 支持 反对

使用道具 举报

25

主题

201

帖子

3470

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
3470

万事如意节日勋章

发表于 2024-5-9 01:49:57 | 显示全部楼层
nde2024 发表于 2024-5-5 20:23
问题总结》 insightface 版本过低

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

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

使用道具 举报

4

主题

38

帖子

405

积分

初级丹师

Rank: 3Rank: 3

积分
405
 楼主| 发表于 2024-5-9 03:42:10 | 显示全部楼层
cfmmx 发表于 2024-5-8 12:32
请问insightface怎样才能升级?多谢指教!

通常使用命令:

python.exe -m pip install Insightface==0.7.3

回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2024-6-16 13:34 , Processed in 0.098238 second(s), 11 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表