Idiap-Data commited on
Commit
37c841b
·
verified ·
1 Parent(s): b2a3eb8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -2
README.md CHANGED
@@ -12,6 +12,8 @@ We present EdgeFace- a lightweight and efficient face recognition network inspir
12
 
13
  * **Training**: EdgeFace-Base was trained on [Webface260M](https://www.face-benchmark.org/) dataset (12M and 4M subsets)
14
  * **Parameters**: 18.23M
 
 
15
  * **Output structure**: Batch of face images
16
 
17
  ## Evaluation of EdgeFace
@@ -44,7 +46,7 @@ We present EdgeFace- a lightweight and efficient face recognition network inspir
44
  |**Edgeface_Base (ours)** | 18.23 | 1398.83 | 99.83 ± 0.24 | 96.07 ± 1.03 | 93.75 ± 1.16 | 97.01 ± 0.94 | 97.60 ± 0.70 |- | - |
45
 
46
 
47
- #### Performance benchmarks of different variants of **EdgeFace**:
48
 
49
  | Model | MPARAMS | MFLOPs | LFW (%) | CALFW (%) | CPLFW (%) | CFP-FP (%) | AgeDB30 (%) |
50
  |-------------------------|---------|---------|----------------|----------------|----------------|----------------|----------------|
@@ -54,16 +56,48 @@ We present EdgeFace- a lightweight and efficient face recognition network inspir
54
  | edgeface_xxs | 1.24 | 94.72 | 99.57 ± 0.33 | 94.83 ± 0.98 | 90.27 ± 0.93 | 93.63 ± 0.99 | 94.92 ± 1.15 |
55
 
56
 
57
-
58
  ## Running EdgeFace-Base
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  Please check the project [GitHub repository](https://gitlab.idiap.ch/bob/bob.paper.tbiom2023_edgeface/)
61
 
62
  ## License
63
 
64
  EdgeFace is released under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)
65
 
 
 
 
 
 
66
 
 
67
 
68
  ## Citation
69
 
 
12
 
13
  * **Training**: EdgeFace-Base was trained on [Webface260M](https://www.face-benchmark.org/) dataset (12M and 4M subsets)
14
  * **Parameters**: 18.23M
15
+ * **Task**: Efficient Face Recognition Model for Edge Devices
16
+ * **Framework**: Pytorch
17
  * **Output structure**: Batch of face images
18
 
19
  ## Evaluation of EdgeFace
 
46
  |**Edgeface_Base (ours)** | 18.23 | 1398.83 | 99.83 ± 0.24 | 96.07 ± 1.03 | 93.75 ± 1.16 | 97.01 ± 0.94 | 97.60 ± 0.70 |- | - |
47
 
48
 
49
+ ### Performance benchmarks of different variants of **EdgeFace**:
50
 
51
  | Model | MPARAMS | MFLOPs | LFW (%) | CALFW (%) | CPLFW (%) | CFP-FP (%) | AgeDB30 (%) |
52
  |-------------------------|---------|---------|----------------|----------------|----------------|----------------|----------------|
 
56
  | edgeface_xxs | 1.24 | 94.72 | 99.57 ± 0.33 | 94.83 ± 0.98 | 90.27 ± 0.93 | 93.63 ± 0.99 | 94.92 ± 1.15 |
57
 
58
 
 
59
  ## Running EdgeFace-Base
60
 
61
+ * Minimal code to instantiate the model and perform inference:
62
+ ``` bash
63
+ import torch
64
+ from torchvision import transforms
65
+ from face_alignment import align
66
+ from backbones import get_model
67
+
68
+ # load model
69
+ model_name="edgeface_base"
70
+ model=get_model(model_name)
71
+ checkpoint_path=f'checkpoints/{arch}.pt'
72
+ model.load_state_dict(torch.load(checkpoint_path, map_location='cpu')).eval()
73
+
74
+ transform = transforms.Compose([
75
+ transforms.ToTensor(),
76
+ transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
77
+ ])
78
+
79
+ path = 'path_to_face_image'
80
+ aligned = align.get_aligned_face(path) # align face
81
+ transformed_input = transform(aligned) # preprocessing
82
+
83
+ # extract embedding
84
+ embedding = model(transformed_input)
85
+ ```
86
+
87
+
88
  Please check the project [GitHub repository](https://gitlab.idiap.ch/bob/bob.paper.tbiom2023_edgeface/)
89
 
90
  ## License
91
 
92
  EdgeFace is released under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)
93
 
94
+ ## Copyright
95
+
96
+ (c) 2024, Anjith George, Christophe Ecabert, Hatef Otroshi Shahreza, Ketan Kotwal, Sébastien Marcel Idiap Research Institute, Martigny 1920, Switzerland.
97
+
98
+ https://gitlab.idiap.ch/bob/bob.paper.tbiom2023_edgeface/-/blob/master/LICENSE
99
 
100
+ Please refer to the link for information about the License & Copyright terms and conditions.
101
 
102
  ## Citation
103