目錄
方法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