Skip to content

trung1-dothanh/sdmm

Stable Diffusion Models Manager

pipeline status

Gitlab Github

demo video

Standalone application to manage your local Stable Diffusion models. This app is web-based so you can run it on your cloud machine like runpod.

Features:

  • Manage model with tag.
  • Get preview image and model info from Civitai by hash.
  • Download from Civitai

How to run

See the sample config at sdmm-config-sample.ron and update to your need.

Run the web server:

./sdmm -c ./path/to/config.ron

Note: Put the res folder in same directory with binary sdmm.

Now you can access it at http://localhost:9696 or http://your_ip_address:9696

How to build

Get the prebuilt binary in Release page or build it with cargo.

Update CSS:

cd res
npm install tailwindcss @tailwindcss/cli 
npx @tailwindcss/cli -i ./css/tailwind_input.css -o ./css/tailwind_output.min.css --build --minify

Migrate database:

# Create sqlite db file if not exist (only used for building)
touch sdmm.sqlite

sqlx migrate run

Build the application

  • Normal build (for running on the same machine):

    cargo build --release

    Output: target/release/sdmm.

  • Statically build for Linux so you can copy binary to another machine and run without worrying about dependencies:

    rustup target add x86_64-unknown-linux-musl    # run once if not installed
    cargo build --target=x86_64-unknown-linux-musl --release

    Output: target/x86_64-unknown-linux-musl/release/sdmm

  • Cross build in Linux for Windows target:

    rustup target add x86_64-pc-windows-gnu    # run once if not installed
    cargo build --target=x86_64-pc-windows-gnu --release

sdmm

About

Stable Diffusion Model Manager

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published