Martlgap commited on
Commit
8cc31fa
·
1 Parent(s): 74b81a1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -9
README.md CHANGED
@@ -6,7 +6,7 @@ language:
6
 
7
  # Model Card for Model ID
8
 
9
- <!-- Provide a quick summary of what the model is/does. -->
10
 
11
  This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
12
 
@@ -14,10 +14,6 @@ This modelcard aims to be a base template for new models. It has been generated
14
 
15
  ### Model Description
16
 
17
- <!-- Provide a longer summary of what this model is. -->
18
-
19
-
20
-
21
  - **Developed by:** Martin Knoche
22
  - **Funded by [optional]:** Technical University of Munich
23
  - **Shared by [optional]:** Martin Knoche
@@ -80,16 +76,26 @@ SOFTWARE.
80
 
81
  ## Uses
82
 
83
- Use the model to extract a facial feature vector from an arbitrary aligned facial image.
84
 
85
  ### Direct Use
86
 
87
- The model can be used by within an ONNX-Runtime environment. Face must be aligned according to:
88
 
 
 
 
 
89
 
 
 
 
 
 
90
 
91
-
92
- [More Information Needed]
 
93
 
94
  ## Bias, Risks, and Limitations
95
 
 
6
 
7
  # Model Card for Model ID
8
 
9
+ This is a face recognition model, which extracts a facial feature vector from an aligned facial image.
10
 
11
  This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
12
 
 
14
 
15
  ### Model Description
16
 
 
 
 
 
17
  - **Developed by:** Martin Knoche
18
  - **Funded by [optional]:** Technical University of Munich
19
  - **Shared by [optional]:** Martin Knoche
 
76
 
77
  ## Uses
78
 
79
+ Use the model to extract a facial feature vector from an arbitrary aligned facial image. You can then compare that vector to other facial feature vectors to decide for same or not same person.
80
 
81
  ### Direct Use
82
 
83
+ The model can be used by within an ONNX-Runtime environment.
84
 
85
+ ```python
86
+ model = rt.InferenceSession("FaceTransformerOctupletLoss.onnx", providers=rt.get_available_providers())
87
+ embedding = model.run(None, {"input_image": input_image})[0][0]
88
+ ```
89
 
90
+ `input_image`-Variable
91
+ Dimensions: 112x112x3
92
+ Channels: Should be in RGB format
93
+ Type: float
94
+ Values: Between 0 and 255
95
 
96
+ `embedding`-Variable
97
+ Dimension: 512
98
+ Type: float
99
 
100
  ## Bias, Risks, and Limitations
101