Model reference · open weights
miewid-msv2 is an open-weight embedding model from conservationxlabs. miewid-msv2 (FP32) weighs 103 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the conservationxlabs/miewid-msv2 model card, 2026-10-01
What it is
| Released by | conservationxlabs |
|---|---|
| Released | 2024-07-02 |
| Parameters | 51M |
| VRAM | 103 MB for the weights |
What it runs on
| Card | Runs | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
From the model card
MiewID-msv2 is a feature extractor trained for re-identification using contrastive learning on a large, high-quality dataset of 54 wildlife species - terrestrial and aquatic - including fins, flukes, flanks, faces.
Intended use is re-identification of individuals from different species by matching against a database of grount-truth samples. Model features can also be used for species classification by retrieval.
import numpy as np
from PIL import Image
import torch
import torchvision.transforms as transforms
from transformers import AutoModel
model_tag = f"conservationxlabs/miewid-msv2"
model = AutoModel.from_pretrained(model_tag, trust_remote_code=True)
def generate_random_image(height=440, width=440, channels=3):
random_image = np.random.randint(0, 256, (height, width, channels), dtype=np.uint8)
return Image.fromarray(random_image)
random_image = generate_random_image()
preprocess = transforms.Compose([
transforms.Resize((440, 440)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
])
input_tensor = preprocess(random_image)
input_batch = input_tensor.unsqueeze(0)
with torch.no_grad():
output = model(input_batch)
print(output)
print(output.shape)
View more usage examples at https://github.com/WildMeOrg/wbia-plugin-miew-id/tree/main/wbia_miew_id/examples
The dataset used for these experiments was a combination of data from Wildbook platforms (multiple users), Happywhale Kaggle competitions multi-species dataset and multiple publicly available datasets. A small subset of data from Wildbook platforms is available at https://lila.science/datasets.
The multi-species model shows improvements over models trained on single species. Moreover the model shows strong generalization ability for majority of the species when trained and evaluated in a leave-one-out fashion.
| Source | group | map | rank-1 | rank-5 | rank-10 | rank-20 | viewpoints | n_test_annots | n_test_names | n_train_annots | n_train_names |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Wildbook | amur_tiger | 91.8 | 100.0 | 100.0 | 100.0 | 100.0 | ['left', 'right'] | 233 | 47 | 691 | 75 |
| Wildbook | beluga_whale | 61.36 | 71.85 | 81.63 | 85.51 | 89.28 | ['up'] | 849 | 228 | 2767 | 354 |
| Happywhale | blue_whale | 36.98 | 38.68 | 55.11 | 61.52 | 69.04 | ['unknown'] | 998 | 392 | 1185 | 339 |
| Wildbook | bottlenose_dolphin | 85.69 | 93.99 | 96.18 | 96.85 | 97.52 | ['right', 'left'] | 4911 | 838 | 11607 | 1062 |
| Happywhale | brydes_whale | 69.96 | 80.95 | 92.86 | 95.24 | 100.0 | ['unknown'] | 42 | 9 | 81 | 15 |
| Lomas Capuchin | capuchin | 34.8 | 47.97 | 68.58 | 76.69 | 85.14 | ['front'] | 296 | 35 | 1708 | 29 |
| Wildbook | cheetah | 57.37 | 71.15 | 84.92 | 87.87 | 92.13 | ['left', 'right'] | 624 | 139 | 1522 | 144 |
| Wildbook | chimpanzee | 94.7 | 100.0 | 100.0 | 100.0 | 100.0 | ['unknown'] | 52 | 8 | 138 | 9 |
| C-Tai | chimpanzee_ctai | 51.67 | 69.64 | 83.68 | 89.18 | 94.12 | ['front'] | 527 | 63 | 2680 | 44 |
| C-Zoo | chimpanzee_czoo | 77.66 | 86.67 | 93.33 | 97.5 | 99.17 | ['front'] | 240 | 24 | 1258 | 17 |
| Happywhale | commersons_dolphin | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | ['unknown'] | 10 | 5 | 7 | 2 |
| Happywhale | cuviers_beaked_whale | 52.89 | 55.71 | 75.71 | 82.86 | 90.0 | ['unknown'] | 70 | 28 |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.