Skip to content

Commit

Permalink
'cu124-cn' Update
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Sep 9, 2024
1 parent deb39fa commit c59abdc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
16 changes: 14 additions & 2 deletions cu124-cn/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ docker run -it --rm \
--gpus all \
-p 8188:8188 \
-v "$(pwd)"/storage:/root \
-e CLI_ARGS="--preview-method taesd" \
-e CLI_ARGS="--fast --preview-method taesd" \
-e PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple" \
-e HF_ENDPOINT="https://hf-mirror.com" \
yanwk/comfyui-boot:cu124-cn
Expand All @@ -77,12 +77,21 @@ podman run -it --rm \
--security-opt seccomp=unconfined \
-p 8188:8188 \
-v "$(pwd)"/storage:/root \
-e CLI_ARGS="--preview-method taesd" \
-e CLI_ARGS="--fast --preview-method taesd" \
-e PIP_INDEX_URL="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple" \
-e HF_ENDPOINT="https://hf-mirror.com" \
yanwk/comfyui-boot:cu124-cn
----

待下载完毕、程序启动后:

1. 打开浏览器访问 http://localhost:8188/
2. 如界面为英文,刷新浏览器,或点击右侧菜单的“Switch Locale”切换语言(可能要点两遍)。
3. 点击右侧菜单的“加载”按钮,加载
https://mirror.ghproxy.com/https://raw.githubusercontent.com/comfyanonymous/ComfyUI_examples/master/flux/flux_schnell_checkpoint_example.png[这张图片]
(该图内嵌 json,内含 FLUX.1 Schnell FP8 Checkpoint 工作流),再点击右侧菜单的“添加提示词队列”,即可运行工作流。
## 运行方法-不下载模型

如果初次启动时下载缓慢,可以改用最简启动:
Expand Down Expand Up @@ -262,6 +271,9 @@ echo "[INFO] 代理设置为 $HTTP_PROXY"
|--front-end-version Comfy-Org/ComfyUI_frontend@latest
|使用最新版本的 ComfyUI 前端
|--fast
|使用实验性的高性能模式,对 40 系显卡 + CUDA 12.4 + 最新 PyTorch + FLUX 模型可达 40% 性能提升。但也有可能造成图像质量劣化。
|===
更多启动参数见 ComfyUI 的
Expand Down
3 changes: 3 additions & 0 deletions cu124-cn/runner-scripts/comfy.settings.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"AGL.Locale": "zh-CN"
}
8 changes: 6 additions & 2 deletions cu124-cn/runner-scripts/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ echo "########################################"
cd /root/ComfyUI/custom_nodes

# 工作空间
clone_or_pull https://mirror.ghproxy.com/https://github.com/11cafe/comfyui-workspace-manager.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/AIGODLIKE/AIGODLIKE-ComfyUI-Translation.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/crystian/ComfyUI-Crystools.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/crystian/ComfyUI-Crystools-save.git
Expand Down Expand Up @@ -77,7 +76,6 @@ clone_or_pull https://mirror.ghproxy.com/https://github.com/Fannovel16/ComfyUI-F
clone_or_pull https://mirror.ghproxy.com/https://github.com/FizzleDorf/ComfyUI_FizzNodes.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/melMass/comfy_mtb.git
clone_or_pull https://mirror.ghproxy.com/https://github.com/MrForExample/ComfyUI-AnimateAnyone-Evolved.git

# 更多
Expand All @@ -88,6 +86,12 @@ clone_or_pull https://mirror.ghproxy.com/https://github.com/SLAPaper/ComfyUI-Ima
# WAS NS 的依赖项并未完整安装,但可以正常运行
clone_or_pull https://mirror.ghproxy.com/https://github.com/WASasquatch/was-node-suite-comfyui.git

# 配置为中文界面
if [ ! -f "/root/ComfyUI/user/default/comfy.settings.json" ] ; then
mkdir -p /root/ComfyUI/user/default
cp /runner-scripts/comfy.settings.json.example /root/ComfyUI/user/default/comfy.settings.json
fi ;

echo "########################################"
echo "[INFO] 下载模型……"
echo "########################################"
Expand Down

0 comments on commit c59abdc

Please sign in to comment.