Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jamesbrink/docker-comfyui

ComfyUI Stable Diffusion
https://github.com/jamesbrink/docker-comfyui

Last synced: about 1 month ago
JSON representation

ComfyUI Stable Diffusion

Awesome Lists containing this project

README

        

# ComfyUI (Stable Diffusion)

## About

Simple Docker image for the [ComfyUI web interface][ComfyUI], with [ComfyUI Manager][ComfyUIManager]. This docker image has only been tested on **Linux with NVIDIA GPUs**. Be sure to use a volume for `/comfyui` if you want to persist settings in the event the container is destroyed.

## Usage

Build and run the container container:

```shell
make
docker run -d --gpus all -p 8188:8188 -v ./models:/comfyui/models -v ./output:/comfyui/output -v ./input:/comfyui/input --name comfyui jamesbrink/comfyui
```

Optionally run container on host nework:

```shell
docker run -d --gpus all --network=host -v ./models:/comfyui/models -v ./output:/comfyui/output -v ./input:/comfyui/input --name comfyui jamesbrink/comfyui
```

If you want to share models between ComfyUI and tools like Fooocus, you can map the volumes like so:

```shell
mkdir -p ~/AI/ComfyUI
mkdir -p ~/AI/Models/StableDiffusion/
mkdir -p ~/AI/Output
mkdir -p ~/AI/Input
```

Then simply run the container with the newly mapped volumes:

```shell
docker run -d --gpus all --network=host -v ~/AI/ComfyUI:/comfyui -v ~/AI/Models/StableDiffusion/:/comfyui/models -v ~/AI/Output:/comfyui/output -v ~/AI/Input:/comfyui/input --name comfyui jamesbrink/comfyui
```

[ComfyUI]: https://github.com/comfyanonymous/ComfyUI
[ComfyUIManager]: https://github.com/ltdrdata/ComfyUI-Manager