Questions tagged [facenet]

5 questions
2
votes
1 answer

How is the constraint $\|f(x)\|_{2}=1$ enforced for the embedding $f(x)$ in the FaceNet paper?

In the FaceNet paper, under section 3.2, the authors mention that: The embedding is represented by $f(x) \in \mathbb{R}^{d}$. It embeds an image $x$ into a $d$-dimensional Euclidean space. Additionally, we constrain this embedding to live on the…
Abhijit Balaji
  • 191
  • 2
  • 9
1
vote
1 answer

Does the converted (now square) distorted image of a face affect the accuracy of the calculation of the similarity in FaceNet?

As far as I know, FaceNet requires a square image as an input. MTCNN can detect and crop the original image as a square, but distortion occurs. Is it okay to feed the converted (now square) distorted image into FaceNet? Does it affect the…
1
vote
0 answers

How do we give a kick start to the Facenet network?

I read the Facenet paper and one thing I am not sure about (it might be trivial and I missed it) is how do we give the kick start to the network. The embeddings, in the beginning, are random, so picking hard (or semi-hard) negatives, based on the…
0
votes
0 answers

Find all face-recognition matches in JPEG files, which are similar to a corpus of n example photos

This code works, with keras_facenet, to find all files in photos/*.jpg matching the face present in me.jpg: import glob, os, cv2 from keras_facenet import FaceNet embedder = FaceNet() detections = embedder.extract("me.jpg", threshold=0.95) me_emb =…
Basj
  • 151
  • 5
-1
votes
1 answer

How to retrain a Facenet model with the triplet loss function?

I want to calculate the similarity or distance of two faces. I'm using Python. I have read and done what this tutorial says. However, the result is not good (the similarity of same faces and similarity of different faces are very very very close to…
behrad
  • 99
  • 2