stable-diffusion.cpp and StableDiffusion.NET
StableDiffusion.NET is a C# wrapper that provides language bindings for the underlying C++ inference engine, making them complements designed to be used together rather than alternatives.
About stable-diffusion.cpp
leejet/stable-diffusion.cpp
Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++
Built on ggml with zero external dependencies, it supports diverse architectures—image generation (SD1.x through FLUX.2), video (Wan2.1/2.2), and editing models—alongside LoRA, ControlNet, and quantized GGUF weights. Multi-backend acceleration includes CUDA, Vulkan, Metal, and OpenCL, with optimizations like Flash Attention, VAE tiling, and latent consistency models for efficient CPU/edge deployment.
About StableDiffusion.NET
DarthAffe/StableDiffusion.NET
C# Wrapper for StableDiffusion.cpp
Wraps the high-performance stable-diffusion.cpp library with fluent APIs for text-to-image, image-to-image, and image editing workflows, automatically selecting GPU acceleration when available. Modular backend system allows flexible native library loading across CPU and various GPU targets. Includes event-driven logging and progress tracking, with integration points for image processing via HPPH extensions.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work