From a742b84260c8a8cd541b4f1c629270e19b4ea079 Mon Sep 17 00:00:00 2001 From: Jaewook Lee <11328376+jaewooklee93@users.noreply.github.com> Date: Tue, 20 Aug 2024 07:31:35 +0900 Subject: [PATCH] comfy: update manual --- comfy-flux/README.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/comfy-flux/README.md b/comfy-flux/README.md index 93906d8..373f4a2 100644 --- a/comfy-flux/README.md +++ b/comfy-flux/README.md @@ -1,6 +1,12 @@ -## `docker-compose.yml` +## ComfyUI + Flux.DEV -```yaml +- Fresh Windows에 WSL, Docker, CUDA 설치하는 법은 다음 [링크](../wsl-docker/README.md)를 참고 + +```sh +mkdir -p ~/comfy +cd ~/comfy # 아무 이름이나 원하는 폴더를 새로 만들고 이동한다 + +tee compose.yml << 'EOF' x-defaults: &defaults restart: unless-stopped stop_grace_period: 0s @@ -19,17 +25,16 @@ services: ports: - 8188:8188 volumes: - - /home/w/comfy:/app/output # CHANGE /home/w/comfy or DELETE this line + - ./models:/app/models + - ./output:/app/output +EOF +docker compose up -d # START server ``` - -## START & STOP - -- Fresh Windows에 WSL, Docker, CUDA 설치하는 법은 다음 [링크](../wsl-docker/README.md)를 참고 +- 브라우저에서 http://localhost:8188 로 접속가능하다. +- 새로운 모델은 `~/comfy/models/checkpoints`에 추가하면 된다. +- 생성한 이미지는 `~/comfy/output`에 저장된다. ```sh -docker compose up -d # START server -# Browser link: http://localhost:8188 - -docker compose down # STOP server +cd ~/comfy && docker compose down # STOP server ``` \ No newline at end of file