From 9cc9c96027f973dc14352f1c72f63da3e2222c9c Mon Sep 17 00:00:00 2001 From: YAN Wenkun Date: Sat, 7 Dec 2024 01:59:15 +0800 Subject: [PATCH] Bundle 3D-Pack example files --- stage2.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stage2.sh b/stage2.sh index 2a6dac8..8258977 100644 --- a/stage2.sh +++ b/stage2.sh @@ -128,11 +128,24 @@ $gcs https://github.com/ltdrdata/ComfyUI-Impact-Subpack.git impact_subpack cd "$workdir"/ComfyUI_Windows_portable ./python_embeded/python.exe -s -B ComfyUI/main.py --quick-test-for-ci --cpu -# Copy model files from ~/ +# Copy u2net model files needed by rembg (to avoid download at first start) cd "$workdir"/ComfyUI_Windows_portable mkdir extras cp ~/.u2net/u2net.onnx ./extras/u2net.onnx +# Copy example files of 3D-Pack +cp -r "$workdir"/ComfyUI_Windows_portable/ComfyUI/custom_nodes/ComfyUI-3D-Pack/_Example_Workflows/. \ + "$workdir"/ComfyUI_Windows_portable/ComfyUI/user/default/workflows/ + +rm -rf "$workdir"/ComfyUI_Windows_portable/ComfyUI/user/default/workflows/_Example_Inputs_Files +rm -rf "$workdir"/ComfyUI_Windows_portable/ComfyUI/user/default/workflows/_Example_Outputs + +cp -r "$workdir"/ComfyUI_Windows_portable/ComfyUI/custom_nodes/ComfyUI-3D-Pack/_Example_Workflows/_Example_Inputs_Files/. \ + "$workdir"/ComfyUI_Windows_portable/ComfyUI/input/ + +cp -r "$workdir"/ComfyUI_Windows_portable/ComfyUI/custom_nodes/ComfyUI-3D-Pack/_Example_Workflows/_Example_Outputs/. \ + "$workdir"/ComfyUI_Windows_portable/ComfyUI/output/ + # Clean up rm "$workdir"/ComfyUI_Windows_portable/*.log # DO NOT clean pymatting cache, they are nbi/nbc files for Numba, and won't be regenerated.