Zer0int CLIP-GmP-ViT-L-14 Fine-tuned for Animal Identification
Fine-tuned Zer0int CLIP-GmP-ViT-L-14 model for individual animal identification, specializing in distinguishing between unique cats and dogs. This model produces robust image embeddings optimized for pet recognition, re-identification, and verification tasks.
Model Details
Base Model: zer0int/CLIP-GmP-ViT-L-14
Input: Images (224x224)
Output: Image embeddings (768-dimensional)
Task: Individual animal identification and verification
Training Data
The model was trained on a comprehensive dataset combining multiple sources:
PetFace Dataset: Large-scale animal face dataset with 257,484 unique individuals across 13 animal families
Dogs-World: Kaggle dataset for dog breed and individual identification
ROC AUC: Area Under the Receiver Operating Characteristic Curve - measures the model's ability to distinguish between different individuals
EER: Equal Error Rate - the error rate where false acceptance and false rejection rates are equal
Top-K: Accuracy of correct identification within the top K predictions
Basic Usage
Installation
pip install transformers torch pillow
Get Image Embedding
python
1import torch
2import torch.nn.functional as F
3from PIL import Image
4from transformers import AutoImageProcessor, AutoModel
56# Load model and processor7processor = AutoImageProcessor.from_pretrained("AvitoTech/Zer0int-CLIP-L-for-animal-identification")8model = AutoModel.from_pretrained("AvitoTech/Zer0int-CLIP-L-for-animal-identification")910device ="cuda"if torch.cuda.is_available()else"cpu"11model = model.to(device).eval()1213# Load and process image14image = Image.open("your_image.jpg").convert("RGB")1516with torch.no_grad():17 inputs = processor(images=[image], return_tensors="pt").to(device)18 image_features = model.get_image_features(**inputs)19 image_features = F.normalize(image_features, dim=1)2021print(f"Embedding shape: {image_features.shape}")# torch.Size([1, 768])
Citation
If you use this model in your research or applications, please cite our work:
@Article{jimaging12010030,
AUTHOR = {Kudryavtsev, Vasiliy and Borodin, Kirill and Berezin, German and Bubenchikov, Kirill and Mkrtchian, Grach and Ryzhkov, Alexander},
TITLE = {From Visual to Multimodal: Systematic Ablation of Encoders and Fusion Strategies in Animal Identification},
JOURNAL = {Journal of Imaging},
VOLUME = {12},
YEAR = {2026},
NUMBER = {1},
ARTICLE-NUMBER = {30},
URL = {https://www.mdpi.com/2313-433X/12/1/30},
ISSN = {2313-433X},
ABSTRACT = {Automated animal identification is a practical task for reuniting lost pets with their owners, yet current systems often struggle due to limited dataset scale and reliance on unimodal visual cues. This study introduces a multimodal verification framework that enhances visual features with semantic identity priors derived from synthetic textual descriptions. We constructed a massive training corpus of 1.9 million photographs covering 695,091 unique animals to support this investigation. Through systematic ablation studies, we identified SigLIP2-Giant and E5-Small-v2 as the optimal vision and text backbones. We further evaluated fusion strategies ranging from simple concatenation to adaptive gating to determine the best method for integrating these modalities. Our proposed approach utilizes a gated fusion mechanism and achieved a Top-1 accuracy of 84.28% and an Equal Error Rate of 0.0422 on a comprehensive test protocol. These results represent an 11% improvement over leading unimodal baselines and demonstrate that integrating synthesized semantic descriptions significantly refines decision boundaries in large-scale pet re-identification.},
DOI = {10.3390/jimaging12010030}
}
Use Cases
Individual pet identification and re-identification