Triplet Loss入门

Triplet Loss入门


Face verification vs. face recogntion

Verification

  • Input image, name/ID
  • Output whether the input image is that of the claimed person.

Recognition

  • Has a database of K peosons(or not recognized)

Relations

We can use a face verification system to make a face recognition system. The accuracy of the verification system has to be high (around 99.9% or more) to be use accurately within a recognition system because the recognition system accuracy will be less than the verification system given K persons.

One Shot Learning

  • One of the face recognition challenges is to solve one shot learning problem.
  • One Shot Learning: A recognition system is able to recognize a person, learning from one image.
  • Historically deep learning doesn’t work well with a small number of data.
    Instead to make this work, we will learn a similarity function:
    d ( i m g 1 , i m g 2 ) d( img1, img2 ) d(img1,img2) = degree of difference between images.
    We want d result to be low in case of the same faces.
    We use τ \tau τ as a threshold for d:
    If d ( i m g 1 , i m g 2 ) &lt; = τ d( img1, img2 ) &lt;= \tau d(img1,img2)<=τ Then the faces are the same.
  • Similarity function helps us solving the one shot learning. Also its robust to new inputs.

Siamese Network

  • We will implement the similarity function using a type of NNs called Siamease Network in which we can pass multiple inputs to the two or more networks with the same architecture and parameters.
  • The loss function will be d ( x 1 , x 2 ) = ∣ ∣ f ( x 1 ) − f ( x 2 ) ∣ ∣ 2 d(x^1, x^2) = || f(x^1) - f(x^2) ||^2 d(x
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值