/stable_diffusion_tools

Stable Diffusion Tools

Primary LanguagePython

Setup

Create requirements:

pipreqs .

Install requirements:

pip install -r requirements.txt

My articles:

My Stable Diffusion Models:

Scripts:

Caption Helper:

Features:

  1. Visual preview of images.
  2. Show caption file content for each image.
  3. Edit caption text.
  4. Add new text after specific comma to all files. Caption Helper Preview

Pattern Replacer

Features:

  1. Replace multiple patterns at text.
  2. Add/remove couples of regex and replacement string.
  3. Save/load automatically the state to file. Pattern Replacer Preview

Civitai Dashboard

Warning:

  • The script not fully debugged. It needs further work.

Features:

  1. Pull models of user with Civitai API.
  2. Plot all models on graph with corresponding downloads per model.
  3. Data pulled periodically and saved to local database. Civitai Dashboard Preview

File Downloader

Features:

  1. Download files from a list of URLs.

Files split to directories

Features:

  1. files in a directory by their creation date.

Images auto crop

Features:

  1. Crop images by size from each side by pixels.

Images auto crop percent

Features:

  1. Crop images from each side by percentage

Images downsize and filter small

Features:

  1. Resize images in a directory.
  2. Delete images smaller than certain size.

Images find bad exif

Features:

  1. Check exif data can be read.
  2. Allow to remove exif from images with problematic exif.

Images flip horizontal

Features:

  1. Flip images horizontally.
  2. Option to flip randomly with 50% chance.

Images rename

Features:

  1. Rename files in folder, use a pattern.

Images sort by ratio

TODO:

  1. Need a way to concentrate images with similar aspect ratio to common folders.

Features:

  1. Images sort into folders by aspect ratio of the image.

Civitai Download

TODO:

  1. Download by model URL or model name.

Features:

  1. Download model from Civitai using list and configuration in the file: download_config.json.
  2. Can download multiple models at same time.

Exif Extract

TODO:

  1. Fix export to file wrong encoding.

Features:

  1. Print Exif info to screen.