Downloads · 30 days
28
40% of all-time downloads
RicePasteM/MeowID-Base
MeowID-Base is a image feature extraction model from RicePasteM. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. It is set up for tensorrt. The card lists the license as apache-2.0.
<p align="center" <img src="assets/logo.png" alt="MeowID" width="420" </p
Downloads · 30 days
28
40% of all-time downloads
All-time downloads
70
Public
Repo size
5.4 GB
Likes
1
Public
Click a slice to open those files.
.pth3.9 GB · 71%
From the Hugging Face model README
MeowID is a face-priority, dual-expert retrieval system for identifying individual cats in unconstrained photographs. It combines separately parameterized face and whole-cat encoders while keeping their embedding galleries route-specific.
The whole-cat expert produces an embedding for every image. A valid ECPose detection activates PetFace-style face alignment, the face expert, and validation-guided whole-cat hint fusion. Queries are compared only with the gallery associated with their selected route.
| Path | Contents | Intended use |
|---|---|---|
artifacts/MeowID-Base/ | MeowID-Base and ECPose weights in PyTorch, ONNX, and TensorRT formats | End-to-end identification and deployment |
artifacts/ECSeg/ | ECSeg-X segmentation weights | Whole-cat instance extraction and cropping |
artifacts/training_init/ | Whole-cat and face expert initialization checkpoints | Training and reproduction |
artifacts/**/SHA256SUMS | Published SHA256 checksums | Artifact integrity verification |
The TensorRT engines were built for the reference RTX 3090 environment. Rebuild them from the ONNX artifacts when the GPU architecture, TensorRT version, or batch profile changes.
| Capability | Details |
|---|---|
| Face localization | ECPose with 9 cat-face landmarks |
| Face alignment | PetFace-style three-point similarity alignment with a landmark-crop fallback |
| Recognition | Separate DINOv3-based face and whole-cat experts |
| Fusion | Validation-guided, gated whole-cat residual for the face route |
| Retrieval | Route-specific galleries with normalized inner-product similarity |
| Backends | PyTorch, ONNX Runtime CPU/CUDA, and TensorRT FP16/FP32 |
| Whole-cat cropping | ECSeg-X instance segmentation with masks, boxes, and padded crops |
from cat_recognition import MeowID
model = MeowID(
"artifacts/MeowID-Base",
backend="tensorrt",
device="cuda:0",
registry="registries/demo",
)
model.register(
"cat_001",
["images/cat_001_a.jpg", "images/cat_001_b.jpg"],
)
prediction = model.search("images/query.jpg", top_k=5)[0]
print("route:", prediction.embedding.route)
for match in prediction.matches:
print(match.cat_id, match.score)
The package accepts file paths, directories, glob patterns, PIL images, RGB NumPy arrays, and iterables of supported inputs.
Offline retrieval on the ICW test set:
| Route | Top-1 | mAP |
|---|---|---|
| Whole-cat expert | 51.34% | 59.00% |
| Cat-face expert | 78.80% | 83.32% |
| MeowID-Base hard routing | 75.93% | 80.45% |
End-to-end batch-1 measurements on one RTX 3090 over 2,846 ICW test images include image decoding, preprocessing, ECPose, alignment, embedding extraction, and routing:
| Backend | Mean latency | Throughput |
|---|---|---|
| PyTorch FP32 | 94.23 ms | 10.61 images/s |
| ONNX Runtime CPU | 478.67 ms | 2.09 images/s |
| ONNX Runtime CUDA | 79.88 ms | 12.51 images/s |
| TensorRT FP16 | 60.00 ms | 16.66 images/s |
These results describe the reference evaluation environment and do not guarantee production performance.
@misc{hu2026meowid,
title = {MeowID: A Dual-Expert Retrieval System for Individual Cat Identification},
author = {Zhangchi Hu and Yi Shang and Haocheng Yang and Qiwei Hu and Yuzheng Li},
year = {2026}
}