Skip to content
image-classification · multi-model 2 Workers · 129.71 MB Total · 3× Parameter Scale 32.39 MB + 97.32 MB WASM q8 Apache-2.0 + Apache-2.0

Swin-Tiny (28.3M) vs Swin-Base (88M) Capacity & Calibration Head-to-Head

Stage 1: Swin-Tiny (Xenova/swin-tiny-patch4-window7-224, 28.3M params, [2, 2, 6, 2], 32.39 MB q8 WASM reusing ../swin-tiny/worker.js) runs alongside Stage 2: Swin-Base (Xenova/swin-base-patch4-window7-224, 88M params, [2, 2, 18, 2], 97.32 MB q8 WASM; 129.71 MB combined) on identical images and center crops to measure Top-1 agreement, margin gain, and entropy delta.

1 · Workflow models (129.71 MB total)

Stage 1 · Swin-Tiny (28.3M · 32.39 MB)

Reuses ../../swin-tiny/worker.js — [2,2,6,2], embed 96, WASM q8.

Stage 2 · Swin-Base (88M · 97.32 MB)

Uses ../worker.js — [2,2,18,2], embed 128, WASM q8.

2 · Run identical image & crops through Swin-Tiny → Swin-Base

Initialising two-model comparison…

No photo selected yet.

Top-1 agreement–
Confidence delta (Base−Tiny)–
Margin delta (Base−Tiny)–
Entropy delta–
Top-K L1 drift–
Latency (Tiny vs Base)–
NaN / invalid0

Stage 1 · Swin-Tiny (28.3M · 32.39 MB)

Awaiting Stage 1 inference…

Stage 2 · Swin-Base (88M · 97.32 MB)

Awaiting Stage 2 inference…

Full-frame vs center-crop calibration history across runs
Image & framing Swin-Tiny Top-1 Swin-Base Top-1 Agree Margin Δ Latency ratio
Run both stages on a full image or crop to record head-to-head metrics.

See inside the code

Show the code — swin-base-core.mjs: compareSwinModels() (agreement, margin Δ, entropy Δ, L1 drift)
Show the code — swin-base-client.js: SwinTinyStageClient (reused ../swin-tiny/worker.js)
Show the code — worker.js: classifyImage() (Stage 2 Swin-Base inference)

References