Views
No views yet
| Property | Value |
|---|---|
| Backbone | facebook/dinov3-vith16plus-pretrain-lvd1689m |
| Architecture | ViT-H/16+ · 32 layers · hidden dim 1280 · 20 heads · SwiGLU MLP · RoPE · 4 register tokens |
| Head | Linear((1 + 4) × 1280 → 74 625) — CLS + 4 register tokens concatenated |
| Vocabulary | 74 625 tags (min frequency ≥ 50 across training set) |
| Input resolution | Any multiple of 16 px — trained at 512 px, generalises to higher resolutions |
| Input normalisation | ImageNet mean/std [0.485, 0.456, 0.406] / [0.229, 0.224, 0.225] |
| Output | Raw logits — apply sigmoid for per-tag probabilities |
| Parameters | ~632 M (backbone) + ~480 M (head) |
| Hyperparameter | Value |
|---|---|
| Training data | e621 + Danbooru (parquet) |
| Batch size | 32 |
| Learning rate | 1e-6 |
| Warmup steps | 50 |
| Loss | BCEWithLogitsLoss with per-tag pos_weight = (neg/pos)^(1/T), cap 100 |
| Optimiser | AdamW (β₁=0.9, β₂=0.999, wd=0.01) |
| Precision | bfloat16 (backbone) / float32 (projection + loss) |
| Hardware | 2× GPU, ThreadPoolExecutor + NCCL all-reduce |

pip install -r requirements.txt1pip install torch torchvision safetensors Pillow requests \
2 python-multipart fastapi uvicorn jinja2 aiofiles1huggingface-cli download lodestones/taggerine \
2 tagger_proto.safetensors \
3 tagger_vocab_with_categories_and_alias_updated.json \
4 tagger_ui_server.py \
5 inference_tagger_standalone.py \
6 --local-dir .Note:tagger_proto.safetensorsis ~5.3 GB. Make sure you have enough disk space.
tagger_ui/ templates foldertagger_ui/templates/ directory to be present alongside tagger_ui_server.py:1huggingface-cli download lodestones/taggerine \
2 --include "tagger_ui/**" \
3 --local-dir .1python tagger_ui_server.py \
2 --checkpoint tagger_proto.safetensors \
3 --vocab tagger_vocab_with_categories_and_alias_updated.json \
4 --port 7860
5# → open http://localhost:7860--device cpu (inference will be slower):1python tagger_ui_server.py \
2 --checkpoint tagger_proto.safetensors \
3 --vocab tagger_vocab_with_categories_and_alias_updated.json \
4 --device cpu \
5 --port 78601python inference_tagger_standalone.py \
2 --checkpoint tagger_proto.safetensors \
3 --vocab tagger_vocab_with_categories_and_alias_updated.json \
4 --images photo.jpg \
5 --topk 30| File | Description |
|---|---|
tagger_proto.safetensors | Model weights (bfloat16) |
tagger_vocab_with_categories_and_alias_updated.json | {"idx2tag": [...], "tag2category": {...}} — 74 625 tags with category metadata |
tagger_vocab_with_categories.json | Same without alias data |
tagger_vocab.json | Minimal vocab — {"idx2tag": [...]} only |
inference_tagger_standalone.py | Self-contained CLI inference script (no transformers dep) |
tagger_ui_server.py | FastAPI + Jinja2 web UI server |
requirements.txt | Python dependencies |
solo, duo, anthro, 1girl, male, …)looking at viewer, sitting, …digital art, hi res, sketch, watercolor, …