Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.58 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.58 KB

Auto-Tag for Anime Images

Original code by Epsp0 in auto-tag-anime
Model provided by KichangKim in DeepDanbooru

Requrements

  • Python 3.10

Instructions

  1. Download the model: Download from Google Drive or DeepDanbooru and place it in the ./model folder.
  2. Install dependencies: Run the following command to install required packages:
    pip install -r requirements.txt

Usage

python3 auto-tag.py "/path/to/directory/"

Important Disclaimer

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.

Simple Version

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.