Skip to content

Commit

Permalink
Bundle 3D-Pack example files
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Dec 6, 2024
1 parent 65d0241 commit 9cc9c96
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9cc9c96

Please sign in to comment.