Skip to content

piallai/stable-diffusion.cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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. It will be updated according to the master repository developments (evolution of the parameters).

  • 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).

Features

  • The model is reloaded only if its parameters are changed

    • Possibility to generate images with different prompts 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'
  • Progress :

    • Monitoring of progression
    • Possibility to cancel

  • Warning/error messages display

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

Languages

  • C++ 100.0%