--- title: Vision Bench — Image Tagger Benchmark emoji: 🌖 colorFrom: blue colorTo: blue sdk: static app_file: index.html pinned: false license: mit short_description: Local image tagger benchmarks and VLM response experiments tags: - benchmark - image-tagging - autotagging - computer-vision - model-evaluation - onnx - vision-language-models models: - animetimm/caformer_b36.dbv4-full - deepghs/pixai-tagger-v0.9-onnx - Mexes/pixai-tagger-v1.0-onnx-fp32-fp16-int8 - SmilingWolf/wd-eva02-large-tagger-v3 - cella110n/cl_tagger_v2 - Camais03/camie-tagger-v2 --- # Vision Bench — Image Tagger Benchmark A lightweight local benchmark for image autotaggers and fine-tuned checkpoints. Run inference once, save complete predictions, and compare runs offline. Optional VLM experiments measure response validity and repeat stability against your own image-chat server. - [Source and documentation](https://github.com/TimeOfAnarchy/vision-bench) - [Latest release and downloads](https://github.com/TimeOfAnarchy/vision-bench/releases/latest) - [Full autotagging experiment](https://timeofanarchy-vision-bench.static.hf.space/experiments/autotagging/index.html) ## Offline analysis in 0.4.0 The [0.4.0 release](https://github.com/TimeOfAnarchy/vision-bench/releases/tag/v0.4.0) adds per-image quality, paired intervals, threshold fitting on a calibration split, tag regressions and review exports. Use the [tagging guide](https://github.com/TimeOfAnarchy/vision-bench/blob/v0.4.0/docs/taggers.md) to analyze your own saved runs. In a [CPU follow-up on the published runs](https://timeofanarchy-vision-bench.static.hf.space/experiments/autotagging/index.html#character-aliases), active Danbooru aliases raised shared character coverage from **696 to 703 of 1,687** annotated tag occurrences (**41.26% to 41.67%**). ## Published comparison: PixAI 1.0 vs CAFormer Five configured pipelines, two model families, the same **1,024 Danbooru-derived images**, and zero failed samples. The quality columns below use **9,039 shared general tags**. mAP averages labels with positive support; micro F1 uses the common representable vocabulary at fixed general-tag thresholds (CAFormer 0.39, PixAI 0.17). | Pipeline | Runtime / precision | General mAP ↑ | General micro F1 ↑ | Median ms/image ↓ | Sampled GPU GiB | | --- | --- | ---: | ---: | ---: | ---: | | CAFormer B36 · native 384 | PyTorch · AMP FP16 | 0.5358 | 0.5998 | 32.49 | 0.98 | | CAFormer B36 · direct 384 | PyTorch · AMP FP16 | 0.5313 | 0.5954 | 29.53 | 0.98 | | CAFormer B36 · direct 512 | PyTorch · AMP FP16 | 0.5383 | 0.5967 | 43.62 | 1.01 | | CAFormer B36 · direct 640 | PyTorch · AMP FP16 | 0.5237 | 0.5801 | 60.23 | 1.09 | | PixAI 1.0 · 1008 | ONNX Runtime · FP16 | 0.5824 | 0.5997 | 223.63 | 6.27 | All CAFormer variants use unchanged FP32 weights with AMP FP16. `native 384` is the original two-stage preprocessing control; `direct` variants use a single-stage resize. The PixAI row uses the Mexes FP16 ONNX artifact. Measured on Windows 11 / RTX 3080 Ti: CAFormer uses PyTorch 2.11.0 + CUDA 12.8; PixAI uses ONNX Runtime 1.23.2 with the CUDA provider. Latency includes image decoding, preprocessing and inference, excludes model loading and integrity checks, and is the median of 1,019 rows after excluding the first five. GPU memory is sampled dedicated process high water, including loading, rather than an allocator peak. There was one timing pass per pipeline, with background GPU applications running. Source tags are incomplete **silver annotations**; unlabeled predictions are not verified false positives. Training overlap has not been checked. The [reproduction kit](https://timeofanarchy-vision-bench.static.hf.space/experiments/autotagging/reproduce/v1/index.html) publishes the exact membership, frozen annotations, image hashes and source URLs, pinned profiles and saved full predictions. Replay all metrics without a GPU, or recover the exact inputs and rerun inference. These are observations for this selection and configured runtimes. [Read the full report, including character-tag coverage and measurement limits](https://timeofanarchy-vision-bench.static.hf.space/experiments/autotagging/index.html) · [Download the aggregate JSON](https://timeofanarchy-vision-bench.static.hf.space/experiments/autotagging/data/results.json) ## Repeat this comparison The [frozen protocol and downloads](https://timeofanarchy-vision-bench.static.hf.space/experiments/autotagging/reproduce/v1/index.html) provide two paths: exact offline metric replay and a fresh CUDA inference run. All 1,024 images were independently downloaded and verified by SHA-256. Model weights are obtained from their upstream repositories; CAFormer requires upstream access. [Immutable HF snapshot](https://huggingface.co/spaces/TimeOfAnarchy/vision-bench/tree/d69d975a3d0a07ceae2ceb4bb16b236bb6dc9a92/experiments/autotagging/reproduce/v1) · [Full reproduction instructions](https://huggingface.co/spaces/TimeOfAnarchy/vision-bench/blob/d69d975a3d0a07ceae2ceb4bb16b236bb6dc9a92/experiments/autotagging/reproduce/v1/README.md) ## Supported tagger models These models have bundled, hash-pinned ONNX profiles. **Profile support and published comparison results are separate**: only CAFormer B36 and PixAI 1.0 are evaluated in the table above. Supply model artifacts and images locally under their own terms. | Model source | Bundled support | Public comparison | | --- | --- | --- | | [CAFormer B36](https://huggingface.co/animetimm/caformer_b36.dbv4-full) | FP32 and AMP FP16 ONNX profiles | In this comparison | | [PixAI 0.9](https://huggingface.co/deepghs/pixai-tagger-v0.9-onnx) | FP32 ONNX profile | Profile available | | [PixAI 1.0 (Mexes export)](https://huggingface.co/Mexes/pixai-tagger-v1.0-onnx-fp32-fp16-int8) | FP16 ONNX profile | In this comparison | | [WD EVA02 large v3](https://huggingface.co/SmilingWolf/wd-eva02-large-tagger-v3) | FP32 ONNX profile | Profile available | | [CL tagger v2](https://huggingface.co/cella110n/cl_tagger_v2) | ONNX profile | Profile available | | [Camie tagger v2](https://huggingface.co/Camais03/camie-tagger-v2) | FP32 ONNX profile | Profile available | Optional PyTorch CAFormer profiles support controlled resolution experiments, including the variants above. Custom profiles accept your own local artifacts and fine-tuned checkpoints. See the [tagging guide](https://github.com/TimeOfAnarchy/vision-bench/blob/master/docs/taggers.md). ## VLM experiments Use versioned image-chat tasks with an existing HTTP server, strict JSON Schema validation, repeat-agreement metrics, saved responses and human-review exports. There is no published VLM quality comparison in this Space yet. Response validity and agreement measure format and stability; task accuracy requires reference labels or human review. See the [VLM guide](https://github.com/TimeOfAnarchy/vision-bench/blob/master/docs/vlm.md). ## Try it locally Start with the [generated CPU example](https://github.com/TimeOfAnarchy/vision-bench/tree/master/examples), which exercises the complete workflow without real model downloads. This static Space presents the tool and experiment reports; inference runs on your computer. Project code and documentation are MIT. Third-party models and datasets retain their own terms. Older wheel/source archives in this Space are historical; use the latest GitHub release for current packaged downloads.