Skip to content

daniandtheweb/sd.cpp-webui

Repository files navigation

sd.cpp-webui

A simple Gradio-based interface for stable-diffusion.cpp.

This program acts primarily as a command generator for stable-diffusion.cpp, with some extra features.

Important

[2024 Sep 3] A significant refactoring has recently taken place. If you encounter issues, try deleting the old config.json file. A new one will be generated on the next launch.

Features

  • Minimal python dependencies (Gradio is the main one, no PyTorch required)
  • Supports all stable-diffusion.cpp features
  • Built-in image gallery
  • Metadata reader

Installation and Running

Dependencies

  • Git
  • Python

Steps

  1. Clone the repository:
git clone https://github.com/daniandtheweb/sd.cpp-webui.git
  1. Clone stable-diffusion.cpp:
git clone https://github.com/leejet/stable-diffusion.cpp.git
  1. Follow the instructions in stable-diffusion.cpp`s folder to build the project.
  2. Copy the built file (sd or sd.exe) from the build/bin directory to the sd.cpp-webui folder.
  3. On Linux/macOS, ensure the copied file is executable.
  4. Run the launch script:
    • sdpp_webui.sh for Linux/macOS
    • sdcpp_webui_windows.bat for Windows

For more information on available launch arguments, run the script with -h or --help.

swappy-20240904-145835

Credits

About

A simple webui for stable-diffusion.cpp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published