From aa9f619502088cb1f0012dfa5a0d69773d9a61e0 Mon Sep 17 00:00:00 2001 From: YAN Wenkun Date: Mon, 30 Sep 2024 02:25:56 +0800 Subject: [PATCH] Update docs --- rocm/README.adoc | 25 ++++++++++++++++++++++++- rocm/README.zh.adoc | 25 ++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/rocm/README.adoc b/rocm/README.adoc index 2bbfa2b..d975426 100644 --- a/rocm/README.adoc +++ b/rocm/README.adoc @@ -70,7 +70,30 @@ https://hub.docker.com/r/rocm/pytorch [source,sh] ---- -docker pull rocm/pytorch:rocm6.2_ubuntu22.04_py3.10_pytorch_release_2.3.0 +docker pull rocm/pytorch:rocm6.2.1_ubuntu20.04_py3.9_pytorch_release_2.3.0 + +mkdir -p storage + +docker run -it --rm \ + --name comfyui-rocm \ + --device=/dev/kfd --device=/dev/dri \ + --group-add=video --ipc=host --cap-add=SYS_PTRACE \ + --security-opt seccomp=unconfined \ + --security-opt label=disable \ + -p 8188:8188 \ + --user root \ + --workdir /root/workdir \ + -v "$(pwd)"/storage:/root/workdir \ + rocm/pytorch:rocm6.2.1_ubuntu20.04_py3.9_pytorch_release_2.3.0 \ + /bin/bash + +git clone https://github.com/comfyanonymous/ComfyUI.git + +# Or use conda +pip install -r ComfyUI/requirements.txt + +# Or python3 +python ComfyUI/main.py --listen --port 8188 ---- It's big, but if you find it hard to run the container, it may be helpful. As it takes care of PyTorch, the most important part, and you just need to install few more Python packages in order to run ComfyUI. diff --git a/rocm/README.zh.adoc b/rocm/README.zh.adoc index 225740d..cc9d145 100644 --- a/rocm/README.zh.adoc +++ b/rocm/README.zh.adoc @@ -64,7 +64,30 @@ https://hub.docker.com/r/rocm/pytorch [source,sh] ---- -docker pull rocm/pytorch:rocm6.2_ubuntu22.04_py3.10_pytorch_release_2.3.0 +docker pull rocm/pytorch:rocm6.2.1_ubuntu20.04_py3.9_pytorch_release_2.3.0 + +mkdir -p storage + +docker run -it --rm \ + --name comfyui-rocm \ + --device=/dev/kfd --device=/dev/dri \ + --group-add=video --ipc=host --cap-add=SYS_PTRACE \ + --security-opt seccomp=unconfined \ + --security-opt label=disable \ + -p 8188:8188 \ + --user root \ + --workdir /root/workdir \ + -v "$(pwd)"/storage:/root/workdir \ + rocm/pytorch:rocm6.2.1_ubuntu20.04_py3.9_pytorch_release_2.3.0 \ + /bin/bash + +git clone https://github.com/comfyanonymous/ComfyUI.git + +# Or use conda +pip install -r ComfyUI/requirements.txt + +# Or python3 +python ComfyUI/main.py --listen --port 8188 ---- 这个镜像很大,大到我没办法用免费的 GitHub CI 来构建。但如果你运行遇到困难,可以尝试用这个镜像手动安装运行 ComfyUI。