当前位置:网站首页>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.
边栏推荐
- [opencv learning] [contour detection]
- moon
- Browser storage scheme
- Jerry's watch reads the alarm clock [chapter]
- Interesting interview questions
- PXE installation UOS prompt NFS over TCP not available from 10 x.x.x
- Linear DP acwing 899 Edit distance
- spfa AcWing 851. spfa求最短路
- 百款拿来就能用的网页特效,不来看看吗?
- 上手报告|今天聊聊腾讯目前在用的微服务架构
猜你喜欢
JS iterator generator asynchronous code processing promise+ generator - > await/async
js4day(DOM开始:获取DOM元素内容,修改元素样式,修改表单元素属性,setInterval定时器,轮播图案例)
通过反射执行任意类的任意方法
自主可控三维云CAD:CrownCAD赋能企业创新设计
Floyd AcWing 854. Floyd finds the shortest path
Hash table acwing 840 Simulated hash table
Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?
Interesting interview questions
堆 AcWing 838. 堆排序
模数转换器(ADC) ADE7913ARIZ 专为三相电能计量应用而设计
随机推荐
Redis introduction, scenario and data type
Interval DP acwing 282 Stone merging
Counter attack of flour dregs: MySQL 66 questions, 20000 words + 50 pictures in detail! A little six
上手报告|今天聊聊腾讯目前在用的微服务架构
Structured data, semi-structured data and unstructured data
Linear DP acwing 897 Longest common subsequence
Analog to digital converter (ADC) ade7913ariz is specially designed for three-phase energy metering applications
Js10day (API phased completion, regular expression introduction, custom attributes, filtering sensitive word cases, registration module verification cases)
Apply lnk306gn-tl converter, non isolated power supply
Post order traversal sequence of 24 binary search tree of sword finger offer
Rust language document Lite (Part 1) - cargo, output, basic syntax, data type, ownership, structure, enumeration and pattern matching
LTC3307AHV 符合EMI标准,降压转换器 QCA7005-AL33 PHY
Docsify deploy IIS
Obtain file copyright information
Package management tools
Jerry's weather code table [chapter]
一些突然迸发出的程序思想(模块化处理)
C modifier
Floyd AcWing 854. Floyd finds the shortest path
bellman-ford AcWing 853. 有边数限制的最短路