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
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 thatsdui
doesn't run into CORS issues--port 7860
:sdui
expects a process to be running onhttp://localhost:7860
--xformers
: use the xformers package for optimization
Additionally you may wish to pass
--lowvram
: if your computer has low/limited RAM
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.
![image](https://private-user-images.githubusercontent.com/573215/258615933-b84dc7f0-00ed-4a5e-ac1e-6a757eda81d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNTA4OTYsIm5iZiI6MTcyMDE1MDU5NiwicGF0aCI6Ii81NzMyMTUvMjU4NjE1OTMzLWI4NGRjN2YwLTAwZWQtNGE1ZS1hYzFlLTZhNzU3ZWRhODFkOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNVQwMzM2MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZjlmZTE3ZDE2NGY5NTkxMDcyN2Q4ZWI3NWEwOTU2ZTc4ZjY1MTcwYmNlODE1NjQ4ODVmM2U0NjkyZDYyYjBlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.o91stEMfwA8V3OtRphUlQqf8-mXNGRLBNxHT63X6XIw)