Downloads · 30 days
16.7K
22% of all-time downloads
gaunernst/vit_tiny_patch8_112.arcface_ms1mv3
vit_tiny_patch8_112.arcface_ms1mv3 is a image feature extraction model from gaunernst. 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 timm.
A Vision Transformer (ViT) for face recognition, trained on MS1MV3 dataset. The model was trained using this repo: https://github.com/gau-nernst/timm-face. It is fully compatible with timm.
Downloads · 30 days
16.7K
22% of all-time downloads
All-time downloads
77.7K
Public
Parameters
5.5M
22.1 MB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors22.1 MB · 100%
From the Hugging Face model README
A Vision Transformer (ViT) for face recognition, trained on MS1MV3 dataset. The model was trained using this repo: https://github.com/gau-nernst/timm-face. It is fully compatible with timm.
import timm
import torch.nn.functional as F
model = timm.create_model("hf_hub:gaunernst/vit_tiny_patch8_112.arcface_ms1mv3", pretrained=True).eval()
embs = model(torch.randn(1, 3, 112, 112)) # output shape (1, 512)
embs = F.normalize(embs, dim=1) # model output is not normalized