gaunernst commited on
Commit
de45adc
1 Parent(s): 08a6040

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - gaunernst/ms1mv3-recordio
4
+ library_name: timm
5
+ ---
6
+
7
+ # Model card for gaunernst/vit_tiny_patch8_112.cosface_ms1mv3
8
+
9
+ 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`.
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ import timm
15
+ import torch.nn.functional as F
16
+
17
+ model = timm.create_model("hf_hub:gaunernst/vit_tiny_patch8_112.cosface_ms1mv3", pretrained=True).eval()
18
+ embs = model(torch.randn(1, 3, 112, 112)) # output shape (1, 512)
19
+ embs = F.normalize(embs, dim=1) # model output is not normalized
20
+ ```