From e2135dd915c6e64f6141559c070b2cae95c9d2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=AE=87=E4=BD=B3?= Date: Tue, 4 Mar 2025 10:23:09 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E6=9B=B4=E6=96=B0latentsync-node=20?= =?UTF-8?q?=E5=87=8F=E5=B0=91=E6=97=A0=E6=95=88=E6=97=B6=E9=97=B4=E5=8D=A0?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 0 server_with_s3.py | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/server_with_s3.py b/server_with_s3.py index a23bd04..63779cb 100644 --- a/server_with_s3.py +++ b/server_with_s3.py @@ -23,6 +23,9 @@ image = ( # build up a Modal Image to run ComfyUI, step by step .pip_install("Pillow") .pip_install("ffmpy") .pip_install("opencv-python") + .pip_install("av") + .pip_install("imageio") + .pip_install("loguru") .run_commands( # use comfy-cli to install ComfyUI and its dependencies "comfy --skip-prompt install --nvidia --version 0.3.10" ) @@ -38,7 +41,6 @@ image = ( .run_commands("comfy node install https://e.coding.net/g-ldyi2063/dev/ComfyUI-CustomNode.git") .run_commands("comfy node install https://github.com/BennyKok/comfyui-deploy") .run_commands("comfy node install https://github.com/yolain/ComfyUI-Easy-Use") - .run_commands("comfy node install https://e.coding.net/g-ldyi2063/dev/ComfyUI-LatentSync-Node.git") .run_commands("comfy node install https://e.coding.net/g-ldyi2063/dev/ComfyUI-VideoHelperSuite.git") .run_commands("comfy node install https://e.coding.net/g-ldyi2063/dev/CosyVoice-ComfyUI.git") .run_commands("comfy node install https://github.com/jags111/efficiency-nodes-comfyui") @@ -46,6 +48,8 @@ image = ( .run_commands("comfy node install https://github.com/rgthree/rgthree-comfy") .run_commands("comfy node install https://github.com/cubiq/ComfyUI_essentials") .run_commands("comfy node install https://github.com/melMass/comfy_mtb") + .run_commands("comfy node install https://e.coding.net/g-ldyi2063/dev/ComfyUI-FFmpeg.git") + .run_commands("comfy node install https://e.coding.net/g-ldyi2063/dev/ComfyUI-LatentSync-Node.git") .run_commands( "mkdir -p /root/comfy/ComfyUI/models/ComfyUI-CustomNode/model && rm -rf /root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/model && ln -s /root/comfy/ComfyUI/models/ComfyUI-CustomNode/model /root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/model" ).run_commands( @@ -60,11 +64,7 @@ image = ( "rm -rf /root/comfy/ComfyUI/models" ).run_commands( "apt update && apt install -y ffmpeg && ffmpeg -version" - ).pip_install( - "av" - ).run_commands( - "comfy node install https://e.coding.net/g-ldyi2063/dev/ComfyUI-FFmpeg.git" - ) + ).add_local_file("config.yaml", "/root/comfy/ComfyUI/custom_nodes/ComfyUI-CustomNode/config.yaml", copy=True) # Add .run_commands(...) calls for any other custom nodes you want to download )