本帖最后由 nde2024 于 2024-5-5 03:51 编辑
感谢回复
应该都安装了。
我把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
请求指点一下,谢谢。 |