wd-hydrus-tagger is a tool that uses the Hydrus Network API to tag your archived images with the WD 1.4 Tagger model.
- Python 3.9.x or 3.10.x
- Hydrus Network and an API key for your server
python -m venv venv # life is easier with a venv
source venv/bin/activate
pip install -r requirements.txt
python -m wd-hydrus-tagger evaluate /path/to/file
--cpu BOOLEAN Use CPU instead of GPU
--model TEXT The tagging model version to use
--threshold FLOAT The threshhold to drop tags below
python -m wd-hydrus-tagger evaluate-api --token your_hydrus_token 123_your_files_hash_456
--token TEXT The API token for your Hydrus server
--cpu BOOLEAN Use CPU instead of GPU
--model TEXT The tagging model version to use
--threshold FLOAT The threshhold to drop tags below
--host TEXT The URL for your Hydrus server
python -m wd-hydrus-tagger evaluate-api-batch --token your_hydrus_token hashes.txt
Where hashes.txt is a file containing one Hydrus file hash per line.
--token TEXT The API token for your Hydrus server
--cpu BOOLEAN Use CPU instead of GPU
--model TEXT The tagging model version to use
--threshold FLOAT The threshhold to drop tags below
--host TEXT The URL for your Hydrus server