SlideShare a Scribd company logo
1 of 11
Face Verification and
Recognition
Nemish Kanwar
Associate Consultant- Machine Learning
Face
Verification
v/s Face
Recognition
Face Verification
• Checking if the
person is the one
who he claims to be
01
Face Recognition
• Who is this person?
• Outputs ID, if person
in database
02
Similarity function
• Degree of difference between images
𝑓 𝑥 =
same, 𝑑 𝑖𝑚𝑔1, 𝑖𝑚𝑔2 < 𝜏
different, 𝑑 𝑖𝑚𝑔1, 𝑖𝑚𝑔2 ≥ 𝜏
Siamese Network
• Mapping from image to Euclidian Space (encoding)
• The encoding used for face verification, recognition and Clustering
128
• An Image is converted to an encoding of size 128
• Images compared using encodings of two faces
SN
SN
𝑑 𝑥 𝑖 , 𝑥 𝑗 = f 𝑥 𝑖 − f 𝑥 𝑗 2
𝑦 = 1 𝑖𝑓 𝑑 < 𝜏 𝑒𝑙𝑠𝑒 0
Training the Network
Triplet Loss
Anchor Image
Positive Image
Negative Image
𝑑 𝐴, 𝑃 + 𝜶 ≤ 𝑑 𝐴, 𝑁
𝛼 = margin
𝑑 𝐴, 𝑃 − 𝑑 𝐴, 𝑁 + 𝛼 ≤ 0
𝐿 𝐴, 𝑃, 𝑁 = max(𝑑 𝐴, 𝑃 − 𝑑 𝐴, 𝑁 + 𝛼, 0)
Cost, 𝐽 =
𝑖=1
𝑚
𝐿(𝐴𝑖
, 𝑃 𝑖
, 𝑁 𝑖
)
Inception Block
Face Recognition
• Extension of Face Verification
• Each identity has there corresponding encoding pre-saved
• Incoming image is compared with each encoding
• Output: The least distance if less than threshold
Dog breed not found in
Database
Address to slides
Address to slides
https://www.slideshare.net/nemishkanwar5/face-verification-and-
recognition
Find me on Linkedin @
https://www.linkedin.com/in/nemishkanwar/

More Related Content

More from Nemish Kanwar

Mechanical Maintenance Department-Balance of Power, Adani Power
Mechanical Maintenance Department-Balance of Power, Adani PowerMechanical Maintenance Department-Balance of Power, Adani Power
Mechanical Maintenance Department-Balance of Power, Adani PowerNemish Kanwar
 
Adani power Practice School
Adani power Practice SchoolAdani power Practice School
Adani power Practice SchoolNemish Kanwar
 
MEMS Pressure difference based Gyroscope
MEMS Pressure difference based GyroscopeMEMS Pressure difference based Gyroscope
MEMS Pressure difference based GyroscopeNemish Kanwar
 
Haldiram's Operation Research
Haldiram's Operation ResearchHaldiram's Operation Research
Haldiram's Operation ResearchNemish Kanwar
 

More from Nemish Kanwar (7)

Mechanical Maintenance Department-Balance of Power, Adani Power
Mechanical Maintenance Department-Balance of Power, Adani PowerMechanical Maintenance Department-Balance of Power, Adani Power
Mechanical Maintenance Department-Balance of Power, Adani Power
 
Adani power Practice School
Adani power Practice SchoolAdani power Practice School
Adani power Practice School
 
MEMS Pressure difference based Gyroscope
MEMS Pressure difference based GyroscopeMEMS Pressure difference based Gyroscope
MEMS Pressure difference based Gyroscope
 
Prodtfinal1
Prodtfinal1Prodtfinal1
Prodtfinal1
 
Haldiram's
Haldiram'sHaldiram's
Haldiram's
 
Haldiram's Operation Research
Haldiram's Operation ResearchHaldiram's Operation Research
Haldiram's Operation Research
 
Mems gyroscope
Mems gyroscopeMems gyroscope
Mems gyroscope
 

Recently uploaded

Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Recently uploaded (20)

Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 

Face verification and recognition

  • 1. Face Verification and Recognition Nemish Kanwar Associate Consultant- Machine Learning
  • 2. Face Verification v/s Face Recognition Face Verification • Checking if the person is the one who he claims to be 01 Face Recognition • Who is this person? • Outputs ID, if person in database 02
  • 3. Similarity function • Degree of difference between images 𝑓 𝑥 = same, 𝑑 𝑖𝑚𝑔1, 𝑖𝑚𝑔2 < 𝜏 different, 𝑑 𝑖𝑚𝑔1, 𝑖𝑚𝑔2 ≥ 𝜏
  • 4. Siamese Network • Mapping from image to Euclidian Space (encoding) • The encoding used for face verification, recognition and Clustering 128
  • 5. • An Image is converted to an encoding of size 128 • Images compared using encodings of two faces SN SN 𝑑 𝑥 𝑖 , 𝑥 𝑗 = f 𝑥 𝑖 − f 𝑥 𝑗 2 𝑦 = 1 𝑖𝑓 𝑑 < 𝜏 𝑒𝑙𝑠𝑒 0
  • 7. Triplet Loss Anchor Image Positive Image Negative Image 𝑑 𝐴, 𝑃 + 𝜶 ≤ 𝑑 𝐴, 𝑁 𝛼 = margin 𝑑 𝐴, 𝑃 − 𝑑 𝐴, 𝑁 + 𝛼 ≤ 0 𝐿 𝐴, 𝑃, 𝑁 = max(𝑑 𝐴, 𝑃 − 𝑑 𝐴, 𝑁 + 𝛼, 0) Cost, 𝐽 = 𝑖=1 𝑚 𝐿(𝐴𝑖 , 𝑃 𝑖 , 𝑁 𝑖 )
  • 9. Face Recognition • Extension of Face Verification • Each identity has there corresponding encoding pre-saved • Incoming image is compared with each encoding • Output: The least distance if less than threshold
  • 10. Dog breed not found in Database
  • 11. Address to slides Address to slides https://www.slideshare.net/nemishkanwar5/face-verification-and- recognition Find me on Linkedin @ https://www.linkedin.com/in/nemishkanwar/