Skip to main content

a similarity calculatior for stable diffusion checkpoints

Project description

sdsim

stable diffusion model similarity calculatior

original: https://huggingface.co/JosephusCheung/ASimilarityCalculatior

modified: https://gist.github.com/toriato/87db2b3cbe9863be43b63ba10cd610ad

packaging: here

Install

pip install sdsim

Usage

sdsim animefull-latest.ckpt ACertainModel.safetensors
sdsim -nv -j result.json animefull-latest.ckpt ACertainModel.safetensors
 sdsim --help
usage: sdsim [-h] [-j JSON] [-s SEED] [-nv] base targets [targets ...]

positional arguments:
  base
  targets

optional arguments:
  -h, --help            show this help message and exit
  -j JSON, --json JSON
  -s SEED, --seed SEED
  -nv, --no-verbose
from sdsim import similarity

model1 = "animefull-latest.ckpt"
model2 = "ACertainModel.safetensors"
model3 = "AbyssOrangeMix2_nsfw.safetensors"
result = similarity(model1, [model2, model3], verbose=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdsim-0.1.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

sdsim-0.1.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page