目录
方法2:通过 ComfyUI-Manager 安装
方法3:手动下载并解压
测试代码:
WanVideoWrapper
方法2:通过 ComfyUI-Manager 安装
在 ComfyUI 界面顶部找到 Manager(管理器)选项。
进入 Install Custom Nodes(安装自定义节点)。
在扩展 URL 输入框中粘贴:
https://github.com/kijai/ComfyUI-WanVideoWrapper.git
点击安装,等待完成25。
方法3:手动下载并解压安装
安装步骤
-
打开终端 / 命令提示符
(Windows 可使用 PowerShell 或 CMD,Linux/Mac 使用终端) -
进入 ComfyUI 的 custom_nodes 目录
首先通过cd
命令导航到你的 ComfyUI 安装目录下的custom_nodes
文件夹,例如:# 示例路径(需替换为你的实际路径) cd /path/to/ComfyUI/custom_nodes
-
克隆插件仓库
执行以下命令克隆 ComfyUI-WanVideoWrapper 仓库:git clone https://github.com/wanbiao/ComfyUI-WanVideoWrapper.git
(如果仓库地址不同,请替换为实际的 GitHub 仓库地址)
-
安装依赖
进入插件目录,安装所需依赖:cd ComfyUI-WanVideoWrapper pip install -r requirements.txt
(如果提示权限问题,可在命令前加
sudo
或使用--user
参数) -
重启 ComfyUI
关闭当前运行的 ComfyUI 进程,重新启动(例如执行python main.py
),插件会自动加载。
如果 Git 安装失败,可以:
从 GitHub 下载插件 ZIP 文件:ComfyUI-WanVideoWrapper。
解压到 custom_nodes 目录3。
报错:
CUDA Setup failed despite GPU being available. Please run the following command to get more information:python -m bitsandbytesInspect the output of the command and see if you can locate CUDA libraries. You might need to add themto your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytesand open an issue at: https://github.com/TimDettmers/bitsandbytes/issuesCannot import /nas/lbg/project/ComfyUI/custom_nodes/ComfyUI-LTXVideo module for custom nodes: Failed to import diffusers.models.modeling_utils because of the following error (look up to see its traceback):CUDA Setup failed despite GPU being available. Please run the following command to get more information:python -m bitsandbytesInspect the output of the command and see if you can locate CUDA libraries. You might need to add themto your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
测试代码:
python -c "from diffusers import ConfigMixin, ModelMixin"
依赖项:
pip install --upgrade peftpip install pyhocon
WanVideoWrapper
git地址:
https://github.com/kijai/ComfyUI-WanVideoWrapper