Views
No views yet
facebook/dinov2-large backbone (300M
parameters) plus a trained linear projection to 512 dimensions. The projection's
L2-normalized output is the embedding; identity is compared with cosine similarity.
Fine-tuning the backbone was tried and rejected — it overfits the training identities and
forgets DINOv2's general features, while the frozen-backbone projection beats zeroshot on
both species.| Input | input, float32 [N, 3, 224, 224], RGB, ImageNet mean/std normalized |
| Output | embedding, float32 [N, 512], L2-normalized |
| Batch | dynamic |
| Opset | 17 |
[0.485, 0.456, 0.406], std [0.229, 0.224, 0.225]). Compare embeddings
with cosine similarity (equivalently, dot product — the outputs are unit vectors).| Test set | Images | Identities | EER | Top-1 | AUC |
|---|---|---|---|---|---|
| Dogs — Dogs-World (whole animal) | 53830 | 16469 | 0.034 | 0.672 | 0.992 |
| Cats — Cat Individual Images (whole animal) | 2575 | 102 | 0.041 | 0.915 | 0.993 |
| Dogs — DogFaceNet (unseen dataset, aligned faces) | 8363 | 1393 | 0.024 | 0.957 | 0.996 |
pet-recognition-small / pet-recognition-base / pet-recognition-large trade accuracy
against cost; base is Gallery's default.