From c5ea2586fde2100759869ef86a21b44c7cb2086f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9B=AA=E5=B3=B0?= Date: Mon, 27 Jan 2025 21:03:25 +0800 Subject: [PATCH] update README, fix onnxruntime-gpu condition --- README.md | 13 +++++++++++++ README_CN.md | 13 +++++++++++++ pyproject.toml | 4 ++-- requirements.txt | 3 ++- 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 344a510..6e7a938 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,19 @@ Need upgrade ComfyUI Version>=0.3.7 # restart ComfyUI ``` +Tips: + +- If you use `ComfyUI_windows_portable` and encounter the following error, please see https://github.com/deepinsight/insightface/issues/2576 +``` +insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(36): fatal error C1083: 无法打开包括文件: “Python.h”: No such file or directory + error: command 'd:\\installed\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 + [end of output] + + note: This error originates from a subprocess, and is likely not a problem with pip. + ERROR: Failed building wheel for insightface +Failed to build insightface +``` + ## Models ### Available Flux models - 32bit/16bit (~22GB VRAM): [model](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/flux1-dev.safetensors), [encoder](https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/t5xxl_fp16.safetensors) diff --git a/README_CN.md b/README_CN.md index 643b771..5943aba 100644 --- a/README_CN.md +++ b/README_CN.md @@ -29,6 +29,19 @@ ComfyUI主体版本需要>=0.3.7 pip install -r requirements.txt # 重启 ComfyUI ``` +安装问题: + +- 如果使用`ComfyUI_windows_portable`并遇到以下错误, 请查看 https://github.com/deepinsight/insightface/issues/2576 +``` +insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(36): fatal error C1083: 无法打开包括文件: “Python.h”: No such file or directory + error: command 'd:\\installed\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 + [end of output] + + note: This error originates from a subprocess, and is likely not a problem with pip. + ERROR: Failed building wheel for insightface +Failed to build insightface +``` + ## 模型 ### 可用的 Flux 模型 - 32bit/16bit (~22GB VRAM): [model](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/flux1-dev.safetensors), [encoder](https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/t5xxl_fp16.safetensors) diff --git a/pyproject.toml b/pyproject.toml index d6141ab..86710f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [project] name = "comfyui_pulid_flux_ll" description = "The implementation for PuLID-Flux, support use with TeaCache and WaveSpeed, no model pollution." -version = "1.1.0" +version = "1.1.1" license = {file = "LICENSE"} -dependencies = ['facexlib', 'insightface', 'onnxruntime', 'onnxruntime-gpu; sys_platform != "darwin" and platform_machine == "x86_64"', 'ftfy', 'timm'] +dependencies = ['cython', 'facexlib', 'insightface', 'onnxruntime', 'onnxruntime-gpu; sys_platform != "darwin" and (platform_machine == "x86_64" or platform_machine == "AMD64")', 'ftfy', 'timm'] [project.urls] Repository = "https://github.com/lldacing/ComfyUI_PuLID_Flux_ll" diff --git a/requirements.txt b/requirements.txt index 65c8d7f..cc32c09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ +cython facexlib insightface onnxruntime -onnxruntime-gpu; sys_platform != 'darwin' and platform_machine == 'x86_64' +onnxruntime-gpu; sys_platform != 'darwin' and (platform_machine == 'x86_64' or platform_machine == 'AMD64') ftfy timm