Categorygithub.com/dennwc/gosd
repositorypackage
1.2.0
Repository: https://github.com/dennwc/gosd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Stable Diffusion for Go

Go Reference

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