feat(fc2b): add Camie tagger ONNX wrapper

CPU-only, lazy-loaded, process-singleton ONNX session. Parses Camie's
string-category selected_tags.csv (vs WD14's integer Danbooru ids).
STORE_FLOOR (0.05) keeps the stored predictions JSON compact;
SURFACED_CATEGORIES gates which categories the suggestion UI shows
(meta/rating/year stored but never surfaced).

Inference itself isn't unit-tested (1GB model not in CI); the missing-
model error path and pure-logic surface are. Full inference runs in the
local integration suite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-15 07:35:58 -04:00
parent 906804140c
commit 41fa26ed95
3 changed files with 179 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
"""ML pipeline services: tagger, embedder, suggestions, centroids, allowlist, aliases."""