Open-Set Crop Instance Re-ID (102.3 MB Total) Stage 1: D-FINE Small Obj365 (11.33 MB WASM q8) Stage 2: DINOv2-Base (90.97 MB WASM q8) Apache-2.0 + Apache-2.0

2-Stage Open-Set Visual Crop Instance Re-ID Pipeline

Chain Stage 1: D-FINE Small Obj365 (11.33 MB q8 WASM, 365 everyday classes) with Stage 2: DINOv2-Base (90.97 MB q8 WASM, 768-d self-supervised embeddings) in 102.3 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 (102.3 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 Β· DINOv2-Base (90.97 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 (DINOv2-Base) loaders…

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

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

Closest Visual Twins (768-d DINOv2-Base Cosine)

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

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

Show the code

Show the code β€” dinov2-core.mjs: rankCropTwins() (768-d DINOv2-Base crop Re-ID ranking)