Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

piallai/stable-diffusion.cpp

Open more actions menu
 
 

Repository files navigation

stable-diffusion.cpp : GUI of command line interface

This repository is a fork of stable-diffusion.cpp. It adds a GUI interface to the executable generating examples. The GUI acts as a local server. Examples can be generated continuously without reloading the model(s).

  • Only requires installation of Qt (5 or 6)

  • To enable, use CMake options:

    -DSD_BUILD_EXAMPLES=ON -DSD_EXAMPLES_GLOVE_GUI=ON
  • Comes with precompiled binaries ready to use for Windows requiring no further installation.

    • -bin-win-avx2-x64 : Compatible with (most) x64 CPU

    • -bin-win-cuda12-x64 : Compatible with Nvidia graphic card GeForce GTX 950 and after (ie: RTX series are compatible).

  • The models are reloaded only if their parameters are changed. If any of the Context options parameters is changed, then the models are reloaded.

    • Possibility to generate images with different prompts/size on the fly
  • Parameters saving as json, upon acceptance (Ok button):

    • The parameters are saved automatically at the execution location
    • The parameters are also copied automatically to the directory of the --output path
  • Parameters loading:

    • The last used parameters are automatically loaded at launch
    • Parameters can be loaded
      • by using the Load button
      • or: sd -glove 'path-to-parameters-file'
  • Parameters filtering:

    • The parameters can be filtered by name
  • Parameters parsing

    • A command line can be pasted using the Parse button
  • Progress :

    • Monitoring of progression
    • Possibility to cancel

  • Warning/error messages display

  • Possibility to generate images sequences using img_gen mode and by setting the output image to be the same as the input image. See Images sequence parameters.

Misc

  • By default, the setup is configured for a desktop application (i.e. : launch using executable icon on desktop). One can disable this default behaviour by additionaly setting the following CMake command:

    -DSD_EXAMPLES_GLOVE_GUI_DESKTOP=OFF

    In this case, the GUI will be accessible using the following CLI argument:

    sd -glove

    and the terminal will be visible. In both cases, CLI arguments of SD examples remain operational.

  • On Windows, if DLLs are missing, go to the sd executable directory and apply the command:

    windeployqt.exe sd.exe

License

The interface is licensed under GPL-3.0, when using -DSD_EXAMPLES_GLOVE_GUI=ON. Otherwise, the MIT license of the master repository applies.

About

Stable Diffusion in pure C/C++

Resources

License

MIT, GPL-3.0 licenses found

Licenses found

MIT
LICENSE
GPL-3.0
License.txt

Stars

Watchers

Forks

Contributors

Languages

  • C++ 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.