2-Stage Visual Crop Re-ID (34.0 MB Total) Stage 1: D-FINE Small Obj365 (11.33 MB WASM q8) Stage 2: DINO v1 ViT-S/16 (22.70 MB WASM q8) Apache-2.0 + Apache-2.0

2-Stage Ultra-Light Detector β†’ Self-Supervised Visual Crop Re-ID

Chain Stage 1: D-FINE Small Obj365 (11.33 MB q8 WASM, 365 everyday classes) with Stage 2: DINO v1 ViT-S/16 (22.70 MB q8 WASM, 384-d self-supervised embeddings) in 34.0 MB total. Every detected object box is cropped and embedded on-device; click any object on the canvas or list to locate its closest visual twin across the scene or across uploaded photos.

1. Independent Stage Loaders (34.0 MB Total)

Stage 1 Β· D-FINE Small Obj365 (11.33 MB WASM q8)

Not initialised β€” reuses ../../dfine-small-obj365/worker.js (Apache-2.0).

Stage 2 Β· DINO v1 ViT-S/16 (22.70 MB WASM q8)

Not initialised β€” uses ../worker.js (Apache-2.0).

2. Detect Objects & Embed Crops for Visual Twin Re-ID

Initialising Stage 1 (D-FINE 365) & Stage 2 (DINO v1) loaders…

Stage 1 D-FINE–
Stage 2 DINO v1–
Detected Objects0
Embedded Crops0
Closest Twin Cos–
Crop NaN Count–

Detected Scene (Click any box to query its visual twin)

Closest Visual Twins (384-d DINO v1 Cosine)

Run both stages above, then click any crop or canvas box to rank visual twins.

Pairwise Object-to-Object Visual Similarity Matrix (384-d DINO v1 [CLS] cosine)
Embed at least 2 detected object crops to compute the pairwise Re-ID matrix.

Show the code

Show the code β€” dino-core.mjs: rankCropTwins() (384-d DINO v1 crop Re-ID ranking)