/sd-hydrus-tagger

Tag hydrus images with embedded Stable Diffusion metadata

Primary LanguagePythonMIT LicenseMIT

sd-hydrus-tagger

Tag hydrus images with embedded Stable Diffusion metadata.

Uses the hydrus client api to scan comfyui metadata for:

  • ckpt_name
  • vae_name
  • lora_name
  • sample_namer
  • text

And adds these as tags against the image, for example: sd:checkpoint:revAnimated.safetensors

Install

git clone https://github.com/staff0rd/sd-hydrus-tagger
cd sd-hydrus-tagger
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Hydrus setup

  1. Apply the tag sd:pending to anything you want processed
    1. Add this tag when importing from stable diffusion output folders
  2. Enable the Client API:
    1. services > manage services > client api > run the client api > enable
    2. services > review services > client api > add > from api request

Running

python main.py request-permissions # only needed once, accept the permissions in hydrus and copy the access key
python main.py process -k <access key from above> process-images

Help

python main.py --help
python main.py process-images --help