mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2026-11-10 19:06:31 +00:00
50cca14d29b38d62adac6a68e343cc26b9a21d72
StableDiffusion.NET
Based on https://github.com/leejet/stable-diffusion.cpp
Usage
Setup
Run build.bat to build the native libs (modify params like CUDA-builds if needed)
Example
using StableDiffusionModel sd = new(@"<path_to_model>", new ModelParameter());
using StableDiffusionImage image = sd.TextToImage("<prompt>", new StableDiffusionParameter());
Languages
C#
91.3%
C
7.9%
Batchfile
0.8%