Views
No views yet
rope_deit3_m14_dino-v2-dist-bio is a compact Bio-DINO image encoder distilled from the larger Bio-DINO SoViT-150M/14 model.
It keeps the same natural-photography biodiversity scope as the teacher model, but uses a much smaller DeiT3-M/14-style student with 38.3M backbone parameters and 512-dimensional embeddings.| Model | Resolution | Params (M) | Accuracy | Top-3 accuracy | Macro F1 |
|---|---|---|---|---|---|
| Bio-DINO 224px | 224 | 142.6 | 0.8572 | 0.9420 | 0.8564 |
| Bio-DINO 252px | 252 | 142.6 | 0.8709 | 0.9510 | 0.8702 |
| Bio-DINO 336px | 336 | 142.6 | 0.8807 | 0.9567 | 0.8800 |
| Bio-DINO M/14 (dist) | 252 | 38.3 | 0.8352 | 0.9274 | 0.8336 |
| Bio-DINO S/14 (dist) | 252 | 25.5 | 0.8010 | 0.9055 | 0.8000 |
| BioCLIP v1 ViT-B/16 | 224 | 93.5 | 0.7890 | 0.9005 | 0.7874 |
| BioCLIP v2 ViT-L/14 | 224 | 313.4 | 0.9169 | 0.9745 | 0.9164 |
| BioTrove-CLIP-O ViT-B/16 | 224 | 93.5 | 0.8351 | 0.9290 | 0.8334 |
| DINOv2 ViT-B/14 | 224 | 93.4 | 0.7492 | 0.8645 | 0.7457 |
| DINOv3 RoPE ViT-B/16 | 256 | 93.4 | 0.7826 | 0.8889 | 0.7795 |
| DINOv3 RoPE ViT-L/16 | 256 | 313.4 | 0.8333 | 0.9235 | 0.8309 |
| PE-Core RoPE ViT-B/16 | 224 | 100.6 | 0.6831 | 0.8299 | 0.6788 |
| ConvNeXt v1 L ImageNet-22K | 224 | 211.6 | 0.7317 | 0.8647 | 0.7289 |
1import birder
2from birder.inference.classification import infer_image
3
4# Option 1: manual setup (more control over preprocessing)
5net, model_info = birder.load_pretrained_model("rope_deit3_m14_dino-v2-dist-bio", inference=True)
6
7# Get the image size the model was trained on
8size = birder.get_size_from_signature(model_info.signature)
9
10# Create an inference transform
11transform = birder.classification_transform(size, model_info.rgb_stats)
12
13# Option 2: helper (quick start with default preprocessing)
14net, model_info, transform = birder.load_pretrained_model_and_transform("rope_deit3_m14_dino-v2-dist-bio", inference=True)
15
16image = "path/to/image.jpeg" # or a PIL image
17out, embedding = infer_image(net, image, transform, return_embedding=True)
18# embedding is a NumPy array with shape of (1, 512)1from PIL import Image
2import birder
3
4net, model_info, transform = birder.load_pretrained_model_and_transform("rope_deit3_m14_dino-v2-dist-bio", inference=True)
5
6image = Image.open("path/to/image.jpeg")
7features = net.detection_features(transform(image).unsqueeze(0))
8# features is a dict (stage name -> torch.Tensor)
9print([(k, v.size()) for k, v in features.items()])
10# Output example:
11# [('stage1', torch.Size([1, 512, 18, 18]))]1@misc{touvron2022deitiiirevengevit,
2 title={DeiT III: Revenge of the ViT},
3 author={Hugo Touvron and Matthieu Cord and Hervé Jégou},
4 year={2022},
5 eprint={2204.07118},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={https://arxiv.org/abs/2204.07118},
9}
10
11@misc{heo2024rotarypositionembeddingvision,
12 title={Rotary Position Embedding for Vision Transformer},
13 author={Byeongho Heo and Song Park and Dongyoon Han and Sangdoo Yun},
14 year={2024},
15 eprint={2403.13298},
16 archivePrefix={arXiv},
17 primaryClass={cs.CV},
18 url={https://arxiv.org/abs/2403.13298},
19}
20
21@misc{oquab2024dinov2learningrobustvisual,
22 title={DINOv2: Learning Robust Visual Features without Supervision},
23 author={Maxime Oquab and Timothée Darcet and Théo Moutakanni and Huy Vo and Marc Szafraniec and Vasil Khalidov and Pierre Fernandez and Daniel Haziza and Francisco Massa and Alaaeldin El-Nouby and Mahmoud Assran and Nicolas Ballas and Wojciech Galuba and Russell Howes and Po-Yao Huang and Shang-Wen Li and Ishan Misra and Michael Rabbat and Vasu Sharma and Gabriel Synnaeve and Hu Xu and Hervé Jegou and Julien Mairal and Patrick Labatut and Armand Joulin and Piotr Bojanowski},
24 year={2024},
25 eprint={2304.07193},
26 archivePrefix={arXiv},
27 primaryClass={cs.CV},
28 url={https://arxiv.org/abs/2304.07193},
29}