TyOverby / sdui

A frontend for the 1111 stable diffusion API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TyOverby/sdui

sdui is a frontend for the AUTOMATIC1111 Stable Diffusion API with a focus on:

  • displaying intermediate results
  • a built-in gallery
  • tools for managing prompts and parameters

Setup

To try sdui, you'll need to install and run Stable Diffusion locally locally. You should run the webui.sh script like so:

./webui --api --cors-allow-origins=* --port 7860 --xformers
  • --api: since we're using an alternative frontend
  • --cors-allow-origins=*: so that sdui doesn't run into CORS issues
  • --port 7860: sdui expects a process to be running on http://localhost:7860
  • --xformers: use the xformers package for optimization

Additionally you may wish to pass

  • --lowvram: if your computer has low/limited RAM

Building

git clone git@github.com:TyOverby/sdui.git
cd sdui

opam switch create ./ 4.14.1
eval $(opam env)

opam repo add janestreet-bleeding https://ocaml.janestreet.com/opam-repository
opam repo add janestreet-bleeding-external https://github.com/janestreet/opam-repository.git#external-packages
opam update

opam install bonsai yojson ppx_yojson_conv
# For development:
# opam install ocamlformat merlin

dune build @check main.bc.js index.html --profile release
# For development: 
# dune build @check main.bc.js index.html -w

(cd _build/default && python3 -m http.server)

The UI should now be accessible at http://localhost:8000.

Screenshots

Dark Mode

image

Light Mode

image

About

A frontend for the 1111 stable diffusion API


Languages

Language:OCaml 93.1%Language:JavaScript 5.3%Language:HTML 0.9%Language:Standard ML 0.7%