Back to directory

stable-diffusion

A pure Go, cgo-free wrapper around stable-diffusion.cpp that runs Stable Diffusion text-to-image and image-to-image generation cross-platform.

stable-diffusion

This is a pure Go wrapper around stable-diffusion.cpp, itself an adaptation of ggml.cpp, letting a Go program run Stable Diffusion inference without cgo. It exposes a high-level AutoModel API with Predict and ImagePredict functions, so most users do not need to load the dynamic library manually, plus a low-level API matching stable-diffusion.cpp directly.

Prebuilt dynamic libraries are provided per platform: Windows supports AVX, AVX2 and AVX512 on x64 plus ROCm 5.5 and CUDA 12 acceleration, Linux supports x64 only with no GPU acceleration, and macOS supports x64 and arm64, also without GPU acceleration. Shipping a program built on this library requires bundling the platform's dynamic library, the model file, the tokenizer file and, if CUDA is used, the CUDA runtime library.

More in Generative media

See all 146
  • Blender Copilot

    github.com

    A Copilot-style AI chat panel inside Blender that runs its agent loop in Blender's own Python process, executes the model's generated code against the live scene, and wraps every conversational turn in a single undo step.

  • A ComfyUI add-on that patches ComfyUI-GGUF so Qwen-Image-2.1 models can run fully as GGUF files, fixing a text-encoder mismatch and missing architecture detection until upstream support arrives.

  • A ComfyUI node that expands a short prompt into a full styled prompt, negative prompt and aspect ratio for Qwen-Image-2.1, using one of 17 photographic styles.