Skip to content

Add TagAI - #797

Open
christian1298 wants to merge 1 commit into
stashapp:mainfrom
christian1298:add-tagAI
Open

christian1298 wants to merge 1 commit into
stashapp:mainfrom
christian1298:add-tagAI

Conversation

@christian1298

Copy link
Copy Markdown

TagAI

Adds TagAI, a plugin that tags images and scenes with locally hosted AI models (no cloud calls).

What it does

Provides 6 Stash tasks:

Task Target
Tag All Untagged Images images
Tag All Images -- Force images
Tag All Flagged Images images
Tag All Untagged Videos videos (scenes)
Tag All Videos -- Force videos (scenes)
Tag All Flagged Videos videos (scenes, adds scene markers)

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-nsfw and sex-position. Video tasks can create scene markers (with ranges) for detected tags.

Runtime requirements

  • PIP dependencies (see recipes / requirements.txt): onnxruntime-gpu, numpy, pillow, requests, stashapp-tools. These must be installed into the Python that Stash runs its plugins with.
  • ffmpeg on PATH (system dependency) for video tagging.
  • ONNX models are downloaded/exported at runtime per 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 --ci passes locally with the plugin staged under plugins/tagAI/.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant