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
See the sample config at sdmm-config-sample.ron and update to your need.
Run the web server:
./sdmm -c ./path/to/config.ronNote: 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
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 --minifyMigrate database:
# Create sqlite db file if not exist (only used for building)
touch sdmm.sqlite
sqlx migrate runBuild 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 --releaseOutput:
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
