Skip to content

Commit

Permalink
Step 2 add ReActor models
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Mar 26, 2024
1 parent 737cc82 commit 0323f57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/step2-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "ComfyUI_Windows_portable_cu121.7z*"
delete_file: true
# always draft before release
draft: true
# delete old files before uploading, in case multiple .7z.00X files overlap
delete_file: "ComfyUI_Windows_portable*"
overwrite: true
update_latest_release: true
13 changes: 12 additions & 1 deletion step2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ $gcs https://github.com/ltdrdata/ComfyUI-Manager.git
$gcs https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git
$gcs https://github.com/MrForExample/ComfyUI-3D-Pack.git
$gcs https://github.com/MrForExample/ComfyUI-AnimateAnyone-Evolved.git
$gcs https://github.com/Nuked88/ComfyUI-N-Sidebar.git
$gcs https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git
$gcs https://github.com/pythongosssss/ComfyUI-WD14-Tagger.git
$gcs https://github.com/rgthree/rgthree-comfy.git
Expand All @@ -58,14 +59,24 @@ cp -r ComfyUI/.ci/windows_base_files/* ./

du -hd1 "$workdir"

# Download models for ReActor
cd "$workdir"/ComfyUI_Windows_portable/ComfyUI/models
curl https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth \
-o facerestore_models/codeformer.pth
curl https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth \
-o facerestore_models/GFPGANv1.4.pth
curl https://huggingface.co/datasets/Gourieff/ReActor/resolve/main/models/inswapper_128.onnx \
-o insightface/inswapper_128.onnx

# Run test, also let custom nodes download some models
cd "$workdir"/ComfyUI_Windows_portable
export PYTHONPYCACHEPREFIX=/tmp/pycache
./python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu

# Clean up
rm "$workdir"/ComfyUI_Windows_portable/*.log
rm -rf "$workdir"/ComfyUI_Windows_portable/python_embeded/Lib/site-packages/pymatting
# Don't clean pymatting cache, they won't be generated again.
#rm -rf "$workdir"/ComfyUI_Windows_portable/python_embeded/Lib/site-packages/pymatting

cd "$workdir"/ComfyUI_Windows_portable/ComfyUI/custom_nodes
rm ./was-node-suite-comfyui/was_suite_config.json
Expand Down

0 comments on commit 0323f57

Please sign in to comment.