[go: up one dir, main page]

Skip to content

somerandompiggo/stable-diffusion-ncnn-webui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion NCNN Web UI

A web UI for Stable Diffusion NCNN written in Go.
Screenshot

Usage (Linux)

Compile this repository with go build and run the binary.

git clone https://github.com/somerandompiggo/stable-diffusion-ncnn-webui
cd stable-diffusion-ncnn-webui && cd src
go build

If successful, after running the compiled executable the web UI will be available at localhost:8080.

Installing Stable Diffusion NCNN

Build Commands (from the stable-diffusion-ncnn-webui directory)

cd Stable-Diffusion-NCNN/x86/linux
mkdir build && cd build
cmake ..
make

For the make command you can use -j to specify how many cores/threads you want to use during compilation. This can hugely speed up the build process. Move the build folder to the root of this repository, and open the web UI again at localhost:8080.

Getting the models

The author of the original Stable Diffusion NCNN has provided a link to a model, which as of writing this is here. Download UNetModel-MHA-fp16.bin, FrozenCLIPEmbedder-fp16.bin and AutoencoderKL-fp16.bin. These should be placed in the assets folder, located in build.

Type in a prompt, and wait about 15 seconds for a 256x256 image (on my machine).

Credits

About

A web UI for stable-diffusion-ncnn written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published