Skip to content

Tag hydrus images with embedded Stable Diffusion metadata

License

Notifications You must be signed in to change notification settings

VoidXedis/sd-hydrus-tagger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/VoidXedis/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

All credit granted to https://github.com/staff0rd i just made minor tweaks to make it work with SDNext metadata

About

Tag hydrus images with embedded Stable Diffusion metadata

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%