mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-29 03:26:12 +00:00
The guide told people to run ghcr.io/leejet/stable-diffusion.cpp:master, which contains the original project and not the changes of this fork. Point the examples at the images published by the CI of this repository, list the available tags and show how to check that an NVIDIA GPU is visible. Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
2.3 KiB
2.3 KiB
Docker
The container images are built from this repository by the CI
(.github/workflows/build.yml) and published to the GitHub Container Registry
as ghcr.io/filve/diffusione-in-tempo-reale, so they always contain the code of
this fork. Every push to master updates these tags:
| Tag | Backend | Platform | Notes |
|---|---|---|---|
master-cpu |
CPU only | linux/amd64 |
no GPU needed |
master-cuda |
CUDA 12 | linux/amd64 |
NVIDIA GPUs; start it with --gpus all (needs the NVIDIA Container Toolkit) |
master-vulkan |
Vulkan | linux/amd64 |
AMD and Intel GPUs through Mesa; pass the GPU with --device /dev/dri |
master-musa |
MUSA | linux/amd64 |
Moore Threads GPUs |
master-sycl |
SYCL | linux/amd64 |
Intel GPUs |
master-cuda-spark |
CUDA 13 | linux/arm64 |
NVIDIA DGX Spark |
The examples below use the CPU image; swap the tag for the one that matches your hardware.
Run CLI
docker run --rm -v /path/to/models:/models -v /path/to/output/:/output ghcr.io/filve/diffusione-in-tempo-reale:master-cpu [args...]
# For example
# docker run --rm -v ./models:/models -v ./build:/output ghcr.io/filve/diffusione-in-tempo-reale:master-cpu -m /models/sd-v1-4.ckpt -p "a lovely cat" -v -o /output/output.png
Check that an NVIDIA GPU is visible to the container before generating:
docker run --rm --gpus all ghcr.io/filve/diffusione-in-tempo-reale:master-cuda --list-devices
Run server
docker run --rm --init -v /path/to/models:/models -v /path/to/output/:/output -p "1234:1234" --entrypoint "/sd-server" ghcr.io/filve/diffusione-in-tempo-reale:master-cpu [args...]
# For example
# docker run --rm --init -v ./models:/models -v ./build:/output -p "1234:1234" --entrypoint "/sd-server" ghcr.io/filve/diffusione-in-tempo-reale:master-cpu -m /models/sd-v1-4.ckpt -p "a lovely cat" -v -o /output/output.png
Building using Docker
docker build -f docker/Dockerfile -t sd .
Building variants using Docker
Vulkan:
docker build -f docker/Dockerfile.vulkan -t sd .
Run locally built image's CLI
docker run --rm -v /path/to/models:/models -v /path/to/output/:/output sd [args...]
# For example
# docker run --rm -v ./models:/models -v ./build:/output sd -m /models/sd-v1-4.ckpt -p "a lovely cat" -v -o /output/output.png