Original code by Epsp0 in auto-tag-anime
Model provided by KichangKim in DeepDanbooru
- Python 3.10
- Download the model: Download from Google Drive or DeepDanbooru and place it in the
./model
folder. - Install dependencies: Run the following command to install required packages:
pip install -r requirements.txt
python3 auto-tag.py "/path/to/directory/"
Do not modify tags.txt
: This file contains all possible tags used by the model and must remain unchanged to ensure the model functions correctly.
Modify only metadata.txt
: If you want to control which tags should be included in the JSON output, edit the metadata.txt
file. Add or remove tags from this file to customize the tags that will be saved to the JSON.
For users who prefer a simpler version where character tags are mixed in with other tags and cannot be customized, please switch to the simple-tag
branch.
This version includes all tags by default and does not allow modifying the tags list.
To switch to the simple-tag
branch, run:
git checkout simple-tag
In this version, you will get a single set of tags for each image without the option to exclude characters or specify custom tags.