Skip to content

Adds tags to anime images by using DeepDanbooru.

Notifications You must be signed in to change notification settings

nekos-best/auto-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.