Spaces:
Running
Running
Download index.html from TimeOfAnarchy/vision-bench: direct link, hf CLI and curl.
- Browser
- Download file 12.9 kB
-
https://huggingface.co/spaces/TimeOfAnarchy/vision-bench/resolve/main/index.html
- Command line
-
hf download hf://spaces/TimeOfAnarchy/vision-bench/index.html
-
curl -L -o index.html https://huggingface.co/spaces/TimeOfAnarchy/vision-bench/resolve/main/index.html
12.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content="A lightweight local image tagger benchmark: compare CAFormer, PixAI, WD, CL and Camie profiles, save predictions, and run VLM response experiments."> | |
| <title>Vision Bench — Image Tagger Benchmark</title> | |
| <style> | |
| :root { color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #101218; color: #f0f2f8; } | |
| * { box-sizing: border-box; } | |
| body { margin: 0; line-height: 1.65; } | |
| main { width: min(100% - 40px, 1040px); margin: 0 auto; padding: 44px 0 36px; } | |
| .eyebrow { color: #aeb7cf; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; } | |
| h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: -.055em; line-height: 1.08; margin: 16px 0 12px; } | |
| h2 { font-size: 1.35rem; line-height: 1.35; margin: 0 0 12px; } | |
| p { margin: 0 0 16px; } | |
| .lead { max-width: 760px; font-size: 1.18rem; color: #bdc5d8; } | |
| .subtitle { color: #d4dcff; font-size: 1.3rem; font-weight: 650; margin-bottom: 14px; } | |
| .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; } | |
| .button { display: inline-block; background: #b9c6ff; color: #141a35; padding: 10px 17px; border: 1px solid #b9c6ff; border-radius: 9px; font-weight: 650; text-decoration: none; } | |
| .button.secondary { color: #e0e6ff; background: transparent; border-color: #46506e; } | |
| a { color: #c0cdff; text-underline-offset: 3px; } | |
| a:hover { text-decoration: underline; } | |
| a:focus-visible { outline: 3px solid #f6cf81; outline-offset: 5px; } | |
| .muted, .details { color: #aeb7cf; font-size: .9rem; } | |
| .panel { background: #181d29; border: 1px solid #30384b; border-radius: 12px; padding: 24px; margin: 28px 0; } | |
| .table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid #30384b; border-radius: 8px; } | |
| table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .92rem; } | |
| caption { padding: 12px 16px; text-align: left; color: #bdc5d8; background: #202737; font-size: .88rem; } | |
| th, td { text-align: right; padding: 12px 14px; border-top: 1px solid #30384b; vertical-align: top; font-variant-numeric: tabular-nums; } | |
| thead th { color: #bdc5d8; font-weight: 550; font-size: .82rem; } | |
| th:first-child { text-align: left; } | |
| tbody th { font-weight: 600; } | |
| .sub { display: block; font-size: .77rem; color: #aeb7cf; font-weight: 400; margin-top: 2px; } | |
| .models th, .models td { text-align: left; } | |
| .models { min-width: 590px; } | |
| .case-preview { display: block; width: 100%; height: auto; border: 1px solid #46506e; border-radius: 8px; margin-top: 22px; } | |
| pre { background: #101218; border-radius: 8px; padding: 16px; overflow-x: auto; } | |
| code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; } | |
| footer { border-top: 1px solid #30384b; padding-top: 20px; color: #aeb7cf; font-size: .9rem; } | |
| @media (max-width: 680px) { main { width: min(100% - 28px, 1040px); padding-top: 28px; } .panel { padding: 17px; } h2 { font-size: 1.2rem; } .subtitle { font-size: 1.15rem; } } | |
| </style> | |
| </head> | |
| <body> | |
| <main> | |
| <header> | |
| <div class="eyebrow">Open source · MIT · Python 3.11+</div> | |
| <h1>Vision Bench</h1> | |
| <p class="subtitle">Image tagger benchmarks & VLM experiments</p> | |
| <p class="lead">Compare new image autotaggers and fine-tuned checkpoints locally. Save complete predictions, recompute metrics and compare runs offline.</p> | |
| <div class="actions"> | |
| <a class="button" href="#autotagging">See published results</a> | |
| <a class="button secondary" href="https://github.com/TimeOfAnarchy/vision-bench" target="_blank" rel="noopener">Source & documentation</a> | |
| <a class="button secondary" href="https://github.com/TimeOfAnarchy/vision-bench/releases/latest" target="_blank" rel="noopener">Downloads</a> | |
| </div> | |
| <p class="muted">Runs on your computer. Supply model weights and evaluation images separately.</p> | |
| </header> | |
| <section class="panel" id="autotagging" aria-labelledby="case-heading"> | |
| <h2 id="case-heading">Published comparison: PixAI 1.0 vs CAFormer</h2> | |
| <p>Five configured pipelines from two model families on the same <strong>1,024 Danbooru-derived images</strong>, with zero failed samples. The table summarizes general-tag quality and measured pipeline costs.</p> | |
| <div class="table-wrap" role="region" aria-label="Published autotagging results; scroll horizontally on narrow screens" tabindex="0"> | |
| <table> | |
| <caption>General tags · 9,039 shared labels · 1,024 paired images · measured 26 October 2026</caption> | |
| <thead><tr><th scope="col">Pipeline / runtime</th><th scope="col">mAP ↑</th><th scope="col">Micro F1 ↑</th><th scope="col">Median<br>ms/image ↓</th><th scope="col">Sampled GPU<br>GiB</th></tr></thead> | |
| <tbody> | |
| <tr><th scope="row">CAFormer B36 · native 384<span class="sub">PyTorch · AMP FP16</span></th><td>0.5358</td><td>0.5998</td><td>32.49</td><td>0.98</td></tr> | |
| <tr><th scope="row">CAFormer B36 · direct 384<span class="sub">PyTorch · AMP FP16</span></th><td>0.5313</td><td>0.5954</td><td>29.53</td><td>0.98</td></tr> | |
| <tr><th scope="row">CAFormer B36 · direct 512<span class="sub">PyTorch · AMP FP16</span></th><td>0.5383</td><td>0.5967</td><td>43.62</td><td>1.01</td></tr> | |
| <tr><th scope="row">CAFormer B36 · direct 640<span class="sub">PyTorch · AMP FP16</span></th><td>0.5237</td><td>0.5801</td><td>60.23</td><td>1.09</td></tr> | |
| <tr><th scope="row">PixAI 1.0 · 1008<span class="sub">ONNX Runtime · FP16</span></th><td>0.5824</td><td>0.5997</td><td>223.63</td><td>6.27</td></tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <p class="details">mAP averages shared labels with positive support. Micro F1 uses the common representable vocabulary at fixed thresholds: CAFormer 0.39, PixAI 0.17. All CAFormer rows use unchanged FP32 weights with AMP FP16; native 384 is the original two-stage preprocessing control, while direct variants use a single-stage resize.</p> | |
| <p class="details">Windows 11 / RTX 3080 Ti. PyTorch 2.11.0 + CUDA 12.8 for CAFormer; ONNX Runtime 1.23.2 with CUDA for PixAI. Median latency covers decoding, preprocessing and inference over 1,019 rows after the first five, excluding model loading and integrity checks. GPU memory is sampled dedicated process high water including loading. One timing pass per pipeline; background GPU applications were running.</p> | |
| <p class="details">Source tags are incomplete silver annotations. Unlabeled predictions are not verified false positives, and training overlap has not been checked. Frozen sample IDs, annotations, exact image recovery and saved predictions are available in the <a href="./experiments/autotagging/reproduce/v1/index.html">reproduction kit</a>. These observations apply to this selection and these runtime configurations.</p> | |
| <div class="actions"> | |
| <a class="button" href="./experiments/autotagging/index.html">Read the full experiment</a> | |
| <a class="button secondary" href="./experiments/autotagging/data/results.json">Aggregate JSON</a> | |
| <a class="button secondary" href="./experiments/autotagging/reproduce/v1/index.html">Reproduce this experiment</a> | |
| </div> | |
| <a href="./experiments/autotagging/index.html" aria-label="Open the full autotagging experiment"><img class="case-preview" src="./experiments/autotagging/preview.jpg" alt="Detailed autotagging report with quality, latency and character vocabulary coverage" loading="lazy" width="1265" height="712"></a> | |
| </section> | |
| <section class="panel" aria-labelledby="models-heading"> | |
| <h2 id="models-heading">Supported tagger models</h2> | |
| <p>Bundled, hash-pinned ONNX profiles cover the models below. Profile support and published results are separate: the comparison above evaluates CAFormer B36 and PixAI 1.0.</p> | |
| <div class="table-wrap" role="region" aria-label="Supported tagger models; scroll horizontally on narrow screens" tabindex="0"> | |
| <table class="models"> | |
| <caption>Model artifacts and images are supplied locally under their own terms.</caption> | |
| <thead><tr><th scope="col">Model source</th><th scope="col">Bundled support</th><th scope="col">Public comparison</th></tr></thead> | |
| <tbody> | |
| <tr><th scope="row"><a href="https://huggingface.co/animetimm/caformer_b36.dbv4-full" target="_blank" rel="noopener">CAFormer B36</a></th><td>FP32 and AMP FP16 ONNX profiles</td><td>In this comparison</td></tr> | |
| <tr><th scope="row"><a href="https://huggingface.co/deepghs/pixai-tagger-v0.9-onnx" target="_blank" rel="noopener">PixAI 0.9</a></th><td>FP32 ONNX profile</td><td>Profile available</td></tr> | |
| <tr><th scope="row"><a href="https://huggingface.co/Mexes/pixai-tagger-v1.0-onnx-fp32-fp16-int8" target="_blank" rel="noopener">PixAI 1.0 (Mexes export)</a></th><td>FP16 ONNX profile</td><td>In this comparison</td></tr> | |
| <tr><th scope="row"><a href="https://huggingface.co/SmilingWolf/wd-eva02-large-tagger-v3" target="_blank" rel="noopener">WD EVA02 large v3</a></th><td>FP32 ONNX profile</td><td>Profile available</td></tr> | |
| <tr><th scope="row"><a href="https://huggingface.co/cella110n/cl_tagger_v2" target="_blank" rel="noopener">CL tagger v2</a></th><td>ONNX profile</td><td>Profile available</td></tr> | |
| <tr><th scope="row"><a href="https://huggingface.co/Camais03/camie-tagger-v2" target="_blank" rel="noopener">Camie tagger v2</a></th><td>FP32 ONNX profile</td><td>Profile available</td></tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <p class="details">Optional PyTorch CAFormer profiles support controlled resolution experiments, including the variants above. Custom profiles accept your own local artifacts and fine-tuned checkpoints. <a href="https://github.com/TimeOfAnarchy/vision-bench/blob/master/docs/taggers.md" target="_blank" rel="noopener">Read the tagging guide</a>.</p> | |
| </section> | |
| <section class="panel" aria-labelledby="vlm-heading"> | |
| <h2 id="vlm-heading">VLM experiments</h2> | |
| <p>Run versioned image-chat tasks against your own HTTP server. Save responses, validate strict JSON schemas, measure repeat agreement and export samples for human review.</p> | |
| <p class="details">There is no published VLM quality comparison here yet. Response validity and agreement measure format and stability; task accuracy requires reference labels or human review. <a href="https://github.com/TimeOfAnarchy/vision-bench/blob/master/docs/vlm.md" target="_blank" rel="noopener">Read the VLM guide</a>.</p> | |
| </section> | |
| <section class="panel" aria-labelledby="offline-heading"> | |
| <h2 id="offline-heading">Analyze saved runs in 0.4.0</h2> | |
| <p>Compare per-image scores and paired intervals, fit thresholds on a calibration split, and export difficult images for review.</p> | |
| <p class="details">On the published runs, alias matching raised shared character coverage from <strong>41.26% to 41.67%</strong>. <a href="./experiments/autotagging/index.html#character-aliases">Read the CPU follow-up</a>.</p> | |
| <a href="https://github.com/TimeOfAnarchy/vision-bench/releases/tag/v0.4.0">Download the 0.4.0 wheel and source</a> | |
| </section> | |
| <section class="panel" aria-labelledby="install-heading"> | |
| <h2 id="install-heading">Try the CPU workflow</h2> | |
| <p>Clone the source and create a Python 3.11+ environment:</p> | |
| <pre><code>git clone https://github.com/TimeOfAnarchy/vision-bench.git | |
| cd vision-bench | |
| python -m venv .venv</code></pre> | |
| <p>Activate it with <code>.\.venv\Scripts\Activate.ps1</code> in Windows PowerShell or <code>source .venv/bin/activate</code> on Linux/macOS, then install:</p> | |
| <pre><code>python -m pip install ".[cpu,demo]"</code></pre> | |
| <p class="details">The <a href="https://github.com/TimeOfAnarchy/vision-bench/tree/master/examples" target="_blank" rel="noopener">offline CPU example</a> generates images and a tiny untrained ONNX model to exercise the complete workflow. Its toy scores do not measure real model quality. This static Space presents the tool and reports; inference runs locally.</p> | |
| </section> | |
| <footer> | |
| Vision Bench · TimeOfAnarchy · MIT for project code and documentation<br> | |
| Third-party models and datasets retain their own terms. | |
| <a href="https://github.com/TimeOfAnarchy/vision-bench/releases/latest" target="_blank" rel="noopener">Latest release</a> · <a href="https://github.com/TimeOfAnarchy/vision-bench" target="_blank" rel="noopener">GitHub</a> | |
| </footer> | |
| </main> | |
| </body> | |
| </html> | |