本页整理了运行 ReActor 等使用 InsightFace 的自定义节点时,需要额外进行的安装步骤。


Windows 便携版

1. 确认所用 ComfyUI 的版本

cd path\to\ComfyUI_windows_portable
python_embeded\python.exe -V

2. 下载与版本对应的 InsightFace 包

请放在 ComfyUI_windows_portable 目录下。

以下是直接下载链接。

3. 更新 pip

cd path\to\ComfyUI_windows_portable
python_embeded\python.exe -m pip install -U pip

4. 安装 InsightFace

  • 使用 Python 3.10 时
    • python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
      
  • 使用 Python 3.11 时
    • python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl
      
  • 使用 Python 3.12 时
    • python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl
      
  • 使用 Python 3.13 时
    • python_embeded\python.exe -m pip install insightface-0.7.3-cp313-cp313-win_amd64.whl
      

5. 重启 ComfyUI