Skip to content

rockerBOO/sd-ext

Repository files navigation

SD Extensions

Script's I use with Stable Diffusion

Analysis

  • debug_vae_from_images.py
  • clip_score.py
  • clip_arch.py
  • clip_embeddings.py
  • clip_image_embeddings.py
  • clip_iqa.py
  • image_similarity.py
  • check_norms.py
  • fid.py

Pruning

  • scale_norms.py
  • drop_keys.py

Extracting

  • extract_lora_block.py

Convert

  • convert_safetensors.py
  • batch_bundle_convert.py

Inference

  • sdv.py
  • sdxl-turbo.py
  • wuerstechen.py
  • moondream.py
  • segmoe_run.py
  • sd_dpo.py

Metadata

  • read-metadata.py

Install

Recommended cloning into another repository to use their dependencies.

Install using venv virtual environment

python -m venv venv
source ./venv/bin/activate # linux
call .\venv\Scripts\activate.bat # windows

# PyTorch. Get the version that works for your computer.
# https://pytorch.org/get-started/locally/

Pick A or B to install dependencies

A) (Optional) Install dependencies using poetry [recommended]

poetry install

Then run with poetry run

poetry run python read-metadata.py myfile.safetensors

B) (Optional) Install dependencies using PIP

pip install -r requirements.txt

Usage

Script's should be setup for accelerate so launch the scripts like

accelerate launch check_norms.py

For each script check the help menu for how to use.

python check_norms.py --help

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages