Downloads · 30 days
0
occurra/person_reid_siglip2_naflex_512d
person_reid_siglip2_naflex_512d is a image feature extraction model from occurra. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Image-to-image person re-identification. Crops in, 512-d unit-norm vectors out; compare with a dot product (cosine similarity).
Downloads · 30 days
0
Access
Public
Updated Nov 1, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.onnx378 MB · 50%
From the Hugging Face model README
Image-to-image person re-identification. Crops in, 512-d unit-norm vectors out; compare with a dot product (cosine similarity).
Crops are consumed at their natural aspect ratio — no fixed square resize, which matters for person crops, where aspect varies widely.
mAP / rank-1 at the model's native 768-d width (see the note on 512-d below). Best per row in bold.
| benchmark | this model | CLIP-ReID ViT-B/16 | MarketaJu SigLIP2 |
|---|---|---|---|
| Real-camera set (200q / 598g) | 0.9230 / 0.9750 | 0.8169 / 0.8900 | 0.8692 / 0.9200 |
| Market-1501 | 0.7360 / 0.8694 | 0.7784 / 0.9026 | 0.8090 / 0.9068 |
| DukeMTMC-reID | 0.5772 / 0.7527 | 0.4363 / 0.6346 | 0.5547 / 0.7365 |
| MSMT17 | 0.4681 / 0.7117 | 0.1503 / 0.3831 | 0.5660 / 0.7899 |
| Cross-domain set (3,000q / 10,415g) | 0.3981 / 0.3903 | 0.3021 / 0.3099 | 0.4692 / 0.4694 |
| VC-Clothes (clothes-change) | 0.4756 / 0.6820 | 0.4838 / 0.6997 | 0.6115 / 0.7596 |
Protocol: gallery entries sharing both identity and camera with the query are dropped as junk; queries left with no true match are skipped.
Notes:
| file | use |
|---|---|
person_reid_siglip2_naflex_512d.onnx | ONNX Runtime (opset 17) |
person_reid_siglip2_naflex_512d.pth | torch bundle — {config, backbone, neck_scale, neck_shift, proj_weight, proj_bias} |
ONNX interface — three inputs, one output:
pixel_values (B, 256, 768) float32 patch sequence, padded
pixel_attention_mask (B, 256) int64 1 = real patch, 0 = padding
spatial_shapes (B, 2) int64 per-image patch grid (rows, cols)
→ embedding (B, 512) float32 L2-normalized in-graph
Preprocessing: RGB, natural aspect ratio, patch-16 tokenisation to at most 256 patches, mean/std 0.5, BILINEAR. Crops with a short side under 32px or an aspect ratio beyond 5:1 are scaled to those bounds first — surveillance person crops hit this guard often, and skipping it changes embeddings measurably.
Mixed patch grids within one batch are handled correctly — the positional resize happens in-graph per image, so batches need not be aspect-uniform.