1 Β· Hierarchical [2, 2, 18, 2] shifted-window pyramid
Exact stage geometry from Xenova/swin-base-patch4-window7-224/config.json:
patch_size: 4, window_size: 7, embed_dim: 128,
depths: [2, 2, 18, 2], num_heads: [4, 8, 16, 32],
hidden_size: 1024.
2 Β· Shifted-window (7Γ7) crop, scale & orientation ablation
Select a starter photo, upload/drop/paste your own, or capture a webcam snapshot, then run all 6 ablation framing probes (100%, 75% crop, 50% crop, +14 px half-window shift, horizontal mirror, 90Β° rotation) inside the Web Worker.
Camera frames stay on your device. Approve permission, then capture a snapshot.
Camera idle.
Initialising model loaderβ¦
Select a photo to inspect window alignment.
| Probe | Top-1 prediction | Confidence | Margin | Entropy | Latency |
|---|---|---|---|---|---|
| Run the 6-step ablation sweep to populate comparison rows. | |||||
3 Β· Top-K probability calibration & entropy curve across samples
Sweeps 5 diverse curated ImageNet photos sequentially (yielding cleanly between passes via
yieldToMain()) to measure Swin-Base's probability concentration (Top-1, Top-5 mass,
margin, and Shannon entropy in bits).
Ready once Swin-Base loads.
| Sample | Top-1 prediction | Top-1 prob | Top-5 mass | Margin | Entropy |
|---|---|---|---|---|---|
| Click "Measure calibration across 5 samples" to run the multi-sample curve. | |||||
4 Β· Live q8 vs q4 / fp16 quantization comparison
Xenova/swin-base-patch4-window7-224 provides q8 (97.32 MB),
q4 (64.33 MB), and fp16 (181.95 MB).
Comparison weights download ONLY when you click below, benchmark both precisions on the active input,
and restore q8 afterwards.
Ready once q8 loads β comparison downloads only on click.
Click "Compare q8 vs selected precision" to benchmark INT8 vs INT4/FP16 live.