Downloads · 30 days
0
apatc/vehicle_reid_siglip2_naflex_512d
vehicle_reid_siglip2_naflex_512d is a image feature extraction model from apatc. 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 vehicle re-identification. Crops in, 512-d unit-norm vectors out; compare with a dot product (cosine similarity).
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2026
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.onnx378 MB · 50%
From the Hugging Face model README
Image-to-image vehicle 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.
mAP / rank-1. Figures are for the published 512-d weights. Best per row in bold.
| benchmark | this model | previous version | CLIP-ReID ViT-B/16 |
|---|---|---|---|
| Real-camera set A (480q / 1,243g) | 0.6674 / 0.8042 | 0.6660 / 0.8333 | 0.2550 / 0.5729 |
| Real-camera set B (296q / 3,927g) | 0.7470 / 0.8209 | 0.7263 / 0.8074 | 0.2647 / 0.4155 |
| VeRi-776 | 0.6451 / 0.8439 | 0.5801 / 0.8045 | 0.7100 / 0.9321 |
| VERI-Wild (test-3000) | 0.4474 / 0.5763 | 0.4158 / 0.5365 | 0.2274 / 0.4548 |
Protocol: gallery entries sharing both identity and camera with the query are dropped as junk, and queries left with no true match are skipped — except on real-camera set B, where that rule is deliberately disabled (see below).
Notes:
| file | use |
|---|---|
vehicle_reid_siglip2_naflex_512d.onnx | ONNX Runtime (opset 17) |
vehicle_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.
Mixed patch grids within one batch are handled correctly — the positional resize happens in-graph per image, so batches need not be aspect-uniform.