zhongfang-zhuang commited on
Commit
eaf3f6f
·
verified ·
1 Parent(s): f0f2d1e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -1,7 +1,12 @@
 
 
 
 
 
1
  # FaceNet Triplet ResNet Model (Grayscale, 112x112, Mobile-friendly)
2
 
3
  This repository provides a FaceNet-style triplet embedding model using ResNet backbones, optimized for mobile and edge devices:
4
- - Input: **Grayscale images** (`3` channel)
5
  - Resolution: **112x112 pixels**
6
  - Output: **Embeddings** suitable for face recognition and verification
7
 
@@ -42,7 +47,7 @@ Obtain a face embedding from an input image, and compare embeddings (e.g., with
42
  import torch
43
 
44
  # Example: batch of 1 grayscale image of 112x112
45
- images = torch.randn(1, 1, 112, 112) # (batch_size, channels, height, width)
46
 
47
  with torch.no_grad():
48
  embedding = model(images) # embedding output suitable for face recognition
@@ -70,4 +75,4 @@ To perform recognition or verification, compare the embedding against a database
70
 
71
  ---
72
 
73
- *For contributions or issues, open a discussion or pull request.*
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ ---
6
  # FaceNet Triplet ResNet Model (Grayscale, 112x112, Mobile-friendly)
7
 
8
  This repository provides a FaceNet-style triplet embedding model using ResNet backbones, optimized for mobile and edge devices:
9
+ - Input: **Grayscale images** (`3` channels)
10
  - Resolution: **112x112 pixels**
11
  - Output: **Embeddings** suitable for face recognition and verification
12
 
 
47
  import torch
48
 
49
  # Example: batch of 1 grayscale image of 112x112
50
+ images = torch.randn(1, 3, 112, 112) # (batch_size, channels, height, width)
51
 
52
  with torch.no_grad():
53
  embedding = model(images) # embedding output suitable for face recognition
 
75
 
76
  ---
77
 
78
+ *For contributions or issues, open a discussion or pull request.*