-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
127 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# You need to install Git for Windows and select Git Bash (Default) | ||
# https://git-scm.com/download/win | ||
|
||
set -e | ||
|
||
# If you don't want a FORCE update, remove "git reset" line | ||
function change_url_or_pull () { | ||
git_remote_url=$(git -C "$1" remote get-url origin) ; | ||
|
||
if [[ $git_remote_url =~ ^(https:\/\/github\.com\/)(.*)(\.git)$ ]]; then | ||
echo "Updating: $1" ; | ||
git -C "$1" reset --hard ; | ||
git -C "$1" pull --ff-only ; | ||
echo "Done Updating: $1" ; | ||
fi ; | ||
} | ||
|
||
change_url_or_pull ComfyUI | ||
|
||
cd ./ComfyUI/custom_nodes | ||
for D in *; do | ||
if [ -d "${D}" ]; then | ||
change_url_or_pull "${D}" & | ||
fi | ||
done | ||
|
||
wait $(jobs -p) | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@REM 如需配置代理,编辑下两行命令,并取消注释(移除行首的 'rem ')。 | ||
rem set HTTP_PROXY=http://localhost:1081 | ||
rem set HTTPS_PROXY=http://localhost:1081 | ||
|
||
@REM 如需配置 PIP 与 HuggingFace Hub 镜像,编辑下两行。 | ||
set PIP_INDEX_URL=https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple | ||
set HF_ENDPOINT=https://hf-mirror.com | ||
|
||
@REM 依照下表,修改为你的 GPU 对应架构,以节约 JIT 编译 PyTorch C++ 扩展的时间: | ||
@REM 'Pascal', '6.0;6.1+PTX' | ||
@REM 'Volta+Tegra', '7.2' | ||
@REM 'Volta', '7.0+PTX' | ||
@REM 'Turing', '7.5+PTX' | ||
@REM 'Ampere+Tegra', '8.7' | ||
@REM 'Ampere', '8.0;8.6+PTX' | ||
@REM 'Ada', '8.9+PTX' | ||
@REM 'Hopper', '9.0+PTX' | ||
set TORCH_CUDA_ARCH_LIST=5.2+PTX;6.0;6.1+PTX;7.5;8.0;8.6;8.9+PTX | ||
|
||
@REM 该行命令会配置 PATH 环境变量。 | ||
set PATH=%PATH%;%~dp0\python_embeded\Scripts | ||
|
||
@REM 该行命令会使 .pyc 文件集中保存在一处。 | ||
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 | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
# 注意:Windows 下运行需要安装 Git 并在安装时选择 Git Bash(默认) | ||
|
||
set -e | ||
|
||
# 如果希望“尝试更新但不强制”,删除 git reset 行以避免还原本地变更 | ||
function change_url_or_pull () { | ||
git_remote_url=$(git -C "$1" remote get-url origin) ; | ||
|
||
if [[ $git_remote_url =~ ^(https:\/\/ghp\.ci\/)(.*)(\.git)$ ]]; then | ||
echo "正在更新: $1" ; | ||
git -C "$1" reset --hard ; | ||
git -C "$1" pull --ff-only ; | ||
echo "更新完成: $1" ; | ||
elif [[ $git_remote_url =~ ^(https:\/\/github\.com\/)(.*)(\.git)$ ]]; then | ||
echo "正在修改URL并更新: $1" ; | ||
git -C "$1" reset --hard ; | ||
git -C "$1" remote set-url origin "https://ghp.ci/$git_remote_url" ; | ||
git -C "$1" pull --ff-only ; | ||
echo "更新完成: $1" ; | ||
fi ; | ||
} | ||
|
||
change_url_or_pull ComfyUI | ||
|
||
# 这里使用 & 将任务置入后台,以实现多线程,并等待全部任务完成 | ||
cd ./ComfyUI/custom_nodes | ||
for D in *; do | ||
if [ -d "${D}" ]; then | ||
change_url_or_pull "${D}" & | ||
fi | ||
done | ||
|
||
wait $(jobs -p) | ||
|
||
exit 0 |
File renamed without changes.