Downloads · 30 days
0
silveroxides/tagger-experiment-onnx
tagger-experiment-onnx is a image classification model from silveroxides. Use it when you need a label for an image. The card lists the license as apache-2.0.
A multi-label image tagger trained on e621 and Danbooru annotations, using a DINOv3 ViT-H/16+ backbone fine-tuned end-to-end with a single linear projection head.
Downloads · 30 days
0
Access
Public
Updated Apr 17, 2026
Repo size
15 GB
Likes
0
Public
Click a slice to open those files.
.data12 GB · 80%
From the Hugging Face model README
A multi-label image tagger trained on e621 and Danbooru annotations, using a DINOv3 ViT-H/16+ backbone fine-tuned end-to-end with a single linear projection head.
| 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 fastapi uvicorn jinja2 aiofiles
python tagger_ui_server.py \
--checkpoint tagger_proto.safetensors \
--vocab tagger_vocab_with_categories.json \
--port 7860
# → open http://localhost:7860
| File | Description |
|---|---|
*.safetensors | Model weights (bfloat16) |
tagger_vocab_with_categories.json | {"idx2tag": [...]} — 74 625 tag strings ordered by training frequency |
inference_tagger_standalone.py | Self-contained inference script (no transformers dep) |
tagger_ui_server.py | FastAPI + Jinja2 web UI server |
Tags are sourced from e621 and Danbooru annotations and cover:
solo, duo, anthro, 1girl, male, …)looking at viewer, sitting, …digital art, hi res, sketch, watercolor, …Minimum tag frequency threshold: 50 occurrences across the combined dataset.
Apache 2.0