Repository navigation
Add TagAI - #797
Open
christian1298 wants to merge 1 commit into
Open
Add TagAI#797christian1298 wants to merge 1 commit into
christian1298 wants to merge 1 commit into
Conversation
Tag images and videos with locally hosted AI models (WD taggers, JoyTag, YOLO NSFW classifiers). Adds 6 Stash tasks for tagging images and scenes, with optional scene-marker creation for video tagging. Runtime requirements: see plugins/tagAI/README.md (pip deps installed into Stash's Python, ffmpeg for video tagging, ONNX model setup per Models/README.md).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TagAI
Adds TagAI, a plugin that tags images and scenes with locally hosted AI models (no cloud calls).
plugins/tagAI/(entry pointtagAI.py+tagai_core/package)tagAIWhat it does
Provides 6 Stash tasks:
Supported models include
wd-v1-4-moat-tagger-v2,wd-convnext-tagger-v3,wd-v1-4-vit-tagger,wd-swinv2-tagger-v3,wd-eva02-large-tagger-v3,joytag,yolo26n-cls-porn,yolo11-nsfwandsex-position. Video tasks can create scene markers (with ranges) for detected tags.Runtime requirements
recipes/requirements.txt):onnxruntime-gpu,numpy,pillow,requests,stashapp-tools. These must be installed into the Python that Stash runs its plugins with.ffmpegonPATH(system dependency) for video tagging.Models/README.md(models are not bundled).LLM-assisted contribution disclosure
Per the CommunityScripts contribution policy: this plugin was developed with LLM assistance. The code has been reviewed and tested by a human (the contributor) against a running Stash instance, and the contributor takes full responsibility for the submission, including license compliance. TagAI is licensed AGPL-3.0 (LICENSE in the source repo), matching this repository's license.
Validation
node ./validate.js --cipasses locally with the plugin staged underplugins/tagAI/.