当前位置:网站首页>Fundamentals of face recognition (facenet)
Fundamentals of face recognition (facenet)
2022-07-02 13:05:00 【Konjaku in the east wind】
List of articles
Main ideas for reference :
- FaceNet The paper :FaceNet: A Unified Embedding for Face Recognition and Clustering
- Wu Enda video
- Keras bosses
Face verification VS Face recoginition
For face verification , We can regard it as a binary classification problem , But face recognition has developed to the present , We still use face recognition to solve .
Encoder


- We enter a picture into encoder, Through a series of Networks , Output a unique password , This string of passwords compiles this person .
- When we compare , Pass the current picture through encoder Code to get a string of passwords , Compare this string of passwords with all the passwords in the database . If f ( k e y , k e y i d a t a b a s e ) ≤ α f(key,key_{i_{database}}) \leq\alpha f(key,keyidatabase)≤α, We think this person is the person in the database .
Triplet Loss
That's the question : How do we train this network (Encoder)?

We divide the data into three groups .
( A n c h o r , P o s i t i v e , N e g a t i v e ) A n c h o r surface in I People Need to be want knowledge other Of this individual people , P o s i t i v e surface in The people Of another One Zhang chart slice , N e g a t i v e surface in another One individual people Of chart slice . (Anchor,Positive,Negative)\\ Anchor Indicates the person we need to identify ,Positive Another picture of the person \\,Negative A picture of another person . (Anchor,Positive,Negative)Anchor surface in I People Need to be want knowledge other Of this individual people ,Positive surface in The people Of another One Zhang chart slice ,Negative surface in another One individual people Of chart slice .
I People set The righteous T r i p l e t L o s s : M a x ( ∣ ∣ ( k e y A n c h o r ) − ( k e y P o s i t i v e ) ∣ ∣ − ∣ ∣ ( k e y A n c h o r ) − ( k e y N e g a t i v e ) ∣ ∣ + α , 0 ) We define Triplet Loss:\\ Max(||(key_{Anchor}) - (key_{Positive})|| -||(key_{Anchor})\\ - (key_{Negative})|| + \alpha ,0) I People set The righteous TripletLoss:Max(∣∣(keyAnchor)−(keyPositive)∣∣−∣∣(keyAnchor)−(keyNegative)∣∣+α,0)
We are optimizing Encoder When , We need different photos of the same person Encoder The compiled key The gap should be as small as possible , At the same time, I hope that the pictures of different people will be compiled key The gap should be as big as possible .
As for the neural network in the middle , You can write your own , You can even use the previous image classification VGG perhaps ConvNet.
边栏推荐
- 嵌入式软件开发
- js3day(数组操作,js冒泡排序,函数,调试窗口,作用域及作用域链,匿名函数,对象,Math对象)
- Heap acwing 838 Heap sort
- Use MySQL events to regularly perform post seven world line tasks
- Wechat official account payment prompt MCH_ ID parameter format error
- Ali was killed by two programming problems at the beginning, pushed inward again, and finally landed (he has taken an electronic offer)
- Linear DP acwing 896 Longest ascending subsequence II
- 哈希表 AcWing 840. 模拟散列表
- spfa AcWing 851. spfa求最短路
- Hundreds of web page special effects can be used. Don't you come and have a look?
猜你喜欢

Redis bloom filter
![[opencv] [image gradient]](/img/37/1f366501e2b4e70ecee6365088167c.jpg)
[opencv] [image gradient]

Apply lnk306gn-tl converter, non isolated power supply

spfa AcWing 851. spfa求最短路
![[opencv learning] [image histogram and equalization]](/img/e7/b8dc55a9febf2b2949fce3a7ac21f9.jpg)
[opencv learning] [image histogram and equalization]

Unforgettable Ali, 4 skills, 5 hr additional written tests, it's really difficult and sad to walk

Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?

ArrayList与LinkedList效率的对比

三面阿里,有惊无险成功拿到offer定级P7,只能说是真的难

Js6day (search, add and delete DOM nodes. Instantiation time, timestamp, timestamp cases, redrawing and reflow)
随机推荐
ASP. Net MVC default configuration, if any, jumps to the corresponding program in the specified area
Oracle from entry to mastery (4th Edition)
Visual studio efficient and practical extension tools and plug-ins
Get started REPORT | today, talk about the microservice architecture currently used by Tencent
Jerry's watch ringtone audition [article]
Ali was killed by two programming problems at the beginning, pushed inward again, and finally landed (he has taken an electronic offer)
8A 同步降压稳压器 TPS568230RJER_规格信息
Window10 upgrade encountered a big hole error code: 0xc000000e perfect solution
Modular commonjs es module
JDBC prevent SQL injection problems and solutions [preparedstatement]
Mobile layout (flow layout)
接口测试面试题目,你都会了吗?
阿里初面被两道编程题给干掉,再次内推终上岸(已拿电子offer)
正确遍历EntryList方法
Jerry's weather code table [chapter]
PXE installation UOS prompt NFS over TCP not available from 10 x.x.x
Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?
What data types does redis have and their application scenarios
Std:: vector batch import fast de duplication method
How can attribute mapping of entity classes be without it?