Wild · Speed vs Resolution & Stress Lab 320px · 480px · 640px Scale Sweep Low-Light · Blur · Flip · Crop

Speed vs Resolution & Perturbation Robustness Stress Lab

Measure how D-FINE Nano COCO (4.48 MB WASM q8) scales across live 320 px, 480 px, and 640 px input resolutions, then stress-test real offscreen perturbations (low-light, blur, horizontal mirror flip, and 60% center crop) with exact recall & score retention deltas.

1 · Active Photo & Resolution / Stress Controls

Initialising model loader…

320 px latency–
480 px latency–
640 px latency–
320 vs 640 speedup–
320 px recall–

2 · Live Input-Scale Sweep (320 px · 480 px · 640 px)

Each pass resizes the source image offscreen to the target edge and overrides RTDetrImageProcessor.size in the worker before running inference. Recall is measured against the 640 px detections (same-class IoU ≥ 0.45).

Measured input-scale latency and recall retention
Scale Prepared Dims Latency FPS Boxes ≥ thr Recall vs 640 px Mean IoU
Run the 3-Scale Sweep above to populate measurements.

3 · Perturbation Robustness Audit (Low-Light · Blur · H-Flip · Crop)

Applies real 2D canvas transforms to the active photo and compares detected COCO boxes against the unperturbed 640 px baseline (horizontal flip and center crop boxes are mathematically remapped back into original image coordinates before IoU matching).

Live perturbation detection retention delta
Perturbation Latency Boxes ≥ thr Matched / Base Retention Δ Score Drift Preview
Click "Run 5-Preset Stress Suite" above to measure robustness.

Show the code

Show the code — dfine-nano.js: preparePerturbedCanvas() (low-light, blur, flip, crop)
Show the code — dfine-nano-core.mjs: remapPerturbedDetectionsToOriginal() (flip/crop coordinate map)
Show the code — dfine-nano-core.mjs: computeRecallVsBaseline() (IoU retention & score drift)