# README
Stable Diffusion for Go
This is a Go wrapper for stable-diffusion.cpp.
It embeds all required C/C++ files into the project and compiles it statically, so there's no need for additional libraries.
Only tested on Linux x64.
Using as a CLI
go install github.com/dennwc/gosd/cmd/gosd@latest
gosd -m ./path/to/model.safetensors -W 256 -H 256 --steps 20 -p "an image of a cat" -o output.png
Using as a library
go get -u github.com/dennwc/gosd
See cmd/gosd for an example.
License
MIT