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 )