Skip to content

Commit

Permalink
Update 'no-3d'
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Dec 2, 2024
1 parent 747c1fc commit 288c6bb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
8 changes: 0 additions & 8 deletions no-3d/attachments/run_nvidia_gpu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ set HF_HUB_CACHE=%~dp0\HuggingFaceHub
@REM This command will let the .pyc files to be stored in one place.
set PYTHONPYCACHEPREFIX=%~dp0\pycache

@REM This command will copy u2net.onnx to user's home path, to skip download at first start.
IF NOT EXIST "%USERPROFILE%\.u2net\u2net.onnx" (
IF EXIST ".\extras\u2net.onnx" (
mkdir "%USERPROFILE%\.u2net" 2>nul
copy ".\extras\u2net.onnx" "%USERPROFILE%\.u2net\u2net.onnx"
)
)

@REM If you don't want the browser to open automatically, add " --disable-auto-launch" (without quotation marks) to the end of the line below.
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

Expand Down
8 changes: 0 additions & 8 deletions no-3d/attachments/中文脚本/run_cn.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ set HF_HUB_CACHE=%~dp0\HuggingFaceHub
@REM 该环境变量使 .pyc 缓存文件集中保存在一个文件夹下,而不是随 .py 文件分布。
set PYTHONPYCACHEPREFIX=%~dp0\pycache

@REM 该命令会复制 u2net.onnx 到用户主目录下,以免启动时还需下载。
IF NOT EXIST "%USERPROFILE%\.u2net\u2net.onnx" (
IF EXIST ".\extras\u2net.onnx" (
mkdir "%USERPROFILE%\.u2net" 2>nul
copy ".\extras\u2net.onnx" "%USERPROFILE%\.u2net\u2net.onnx"
)
)

@REM 如不希望 ComfyUI 启动后自动打开浏览器,添加 --disable-auto-launch 到下行末尾(注意空格)。
@REM 如在用 40 系显卡,可添加 --fast 开启实验性高性能模式。
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
Expand Down
2 changes: 2 additions & 0 deletions no-3d/requirements5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ filelock
GitPython
imageio-ffmpeg
importlib-metadata
iopath
jaxtyping
libigl
matrix-client==0.4.0
mediapipe
mss
Expand Down
7 changes: 0 additions & 7 deletions no-3d/stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,8 @@ $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 ~/
cd "$workdir"/ComfyUI_Windows_portable
mkdir extras
cp ~/.u2net/u2net.onnx ./extras/u2net.onnx

# 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.
#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 288c6bb

Please sign in to comment.