FP16 / UINT8 Quants of KaraKaraWitch's haruka-tagger.
Models
Base
Models labeled without mobile have the same input and outputs as the original.
Mobile
Models labeled with mobile have preprocessing and postprocessing.Input -> RGB data (Uint8Array) of an imageOutput -> Same outputs but sigmoid is applied
These models were made for the WaifuTagger app.
Tags
The tags.json file is the tags mapping for the model.id -> [label, category id, count]
Category Ids:
- 0 = general
- 1 = artist
- 3 = copyright
- 4 = character
- 6 = year
- 9 = rating
Notebook
The notebook used for processing is also included.
Accuracy
This was tested using this sample.
The QUINT8 is haruka-tagger-quint8-mobile.onnx
| Tag | Base (FP32) | QUINT8 | Difference |
|---|---|---|---|
power_(chainsaw_man) |
100.00% | 100.00% | ░░░░░░░░░░ +0.00% |
chainsaw_man |
99.98% | 99.97% | ░░░░░░░░░░ -0.01% |
1girl |
99.85% | 99.67% | ░░░░░░░░░░ -0.18% |
horns |
98.42% | 98.07% | ░░░░░░░░░░ -0.35% |
solo |
98.01% | 96.62% | ░░░░░░░░░░ -1.40% |
necktie |
97.57% | 97.68% | ░░░░░░░░░░ +0.10% |
sharp_teeth |
97.10% | 96.72% | ░░░░░░░░░░ -0.39% |
gunjyou_(gunjyou_00) |
96.58% | 70.70% | █████████░ -25.87% |
teeth |
94.03% | 93.90% | ░░░░░░░░░░ -0.13% |
long_hair |
91.59% | 92.43% | ░░░░░░░░░░ +0.84% |
shirt |
90.94% | 90.97% | ░░░░░░░░░░ +0.03% |
red_horns |
89.85% | 89.51% | ░░░░░░░░░░ -0.35% |
cross-shaped_pupils |
88.95% | 88.95% | ░░░░░░░░░░ +0.00% |
black_necktie |
87.99% | 88.41% | ░░░░░░░░░░ +0.42% |
blonde_hair |
84.88% | 80.10% | ██░░░░░░░░ -4.78% |
white_shirt |
84.58% | 84.44% | ░░░░░░░░░░ -0.15% |
symbol-shaped_pupils |
84.43% | 78.16% | ██░░░░░░░░ -6.27% |
looking_at_viewer |
83.53% | 80.76% | █░░░░░░░░░ -2.77% |
general |
81.94% | 87.09% | ░░░░░░░░░░ +5.15% |
hair_between_eyes |
80.70% | 79.96% | ░░░░░░░░░░ -0.74% |
simple_background |
79.59% | 59.84% | ███████░░░ -19.75% |
open_mouth |
77.66% | 78.15% | ░░░░░░░░░░ +0.49% |
collared_shirt |
76.71% | 78.75% | ░░░░░░░░░░ +2.04% |
era_2021_2023 |
76.49% | 75.07% | ░░░░░░░░░░ -1.42% |
era_2020_2022 |
73.28% | 70.47% | █░░░░░░░░░ -2.80% |
jacket |
72.29% | 72.18% | ░░░░░░░░░░ -0.10% |
demon_girl |
68.26% | 69.77% | ░░░░░░░░░░ +1.51% |
era_2022_2024 |
67.69% | 67.65% | ░░░░░░░░░░ -0.04% |
demon_horns |
66.09% | 67.53% | ░░░░░░░░░░ +1.44% |
smile |
64.72% | 63.57% | ░░░░░░░░░░ -1.15% |