前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >人脸识别--SphereFace: Deep Hypersphere Embedding for Face Recognition

人脸识别--SphereFace: Deep Hypersphere Embedding for Face Recognition

作者头像
用户1148525
发布2019-05-26 12:00:08
1.2K0
发布2019-05-26 12:00:08
举报

SphereFace: Deep Hypersphere Embedding for Face Recognition CVPR2017 https://github.com/wy1iu/sphereface pytorch: https://github.com/clcarwin/sphereface_pytorch

针对人脸识别问题,当前的损失函数基本都基于 Euclidean margin ,这里我们提出基于 angular margin 的 angular softmax (A-Softmax) loss 。 思路简单,效果也好!

本文的主要内容: 1)人脸识别的一些背景知识和 主要几种损失函数 2)从基于 Euclidean margin softmax loss 到 基于 angular modified softmax loss 3)引入 Angular Margin 到 Softmax Loss 得到 A-Softmax Loss 4)A-Softmax Loss 的 Hypersphere Interpretation 5)Properties of A-Softmax Loss 6)Discussions 和 Experiments

face recognition 包括两类: face identification : classifies a face to a specific identity 根据人脸指出其是谁,这是谁的人脸图像 face verification : determines whether a pair of faces belongs to the same identity 这个两个人脸是不是同一个人

首先说一下人脸识别的 open-set and closed-set ,这是基于 testing protocol 来分的

这里写图片描述
这里写图片描述

最大的区别在于: closed-set : Identities appear in training set open-set : Identities DO NOT appear in training set

对于 closed-set protocol,所有的参与测试的人都在训练集中,很自然就是将测试中人脸分类到训练集中的某一个人。 在这个场景,face identification 和 verification 是等价的。所以 在 closed-set FR 中 人脸识别是 一个分类问题。

对于 open-set protocol, 测试的人不在训练集中,Open-set FR 本质上是一个 metric learning 问题, 关键是学习到一个 discriminative large-margin features

对于 open-set FR , 理想的特征是满足 在一定的度量空间中最大类类间距 小于 最小类内间距 the maximal intra-class distance is smaller than the minimal inter-class distance under a certain metric space

但是很少有 CNN 提取的特征能够满足这个条件,本文基于 angular margin 的 angular softmax (A-Softmax) loss CNN 提取的特征可以满足该条件

3 Deep Hypersphere Embedding 3.1. Revisiting the Softmax Loss

对于二分类问题,基于 softmax loss 的 posterior probabilities 如下:

这里写图片描述
这里写图片描述

对应的损失函数是

这里写图片描述
这里写图片描述

损失函数的图示:

这里写图片描述
这里写图片描述

这里我们将

这里写图片描述
这里写图片描述

改写为

这里写图片描述
这里写图片描述

用角度表示的损失函数如下:

这里写图片描述
这里写图片描述
这里写图片描述
这里写图片描述

3.2. Introducing Angular Margin to Softmax Loss 这里的定义很简单啊!

这里写图片描述
这里写图片描述

集中损失函数的2D,3D 几何图示

这里写图片描述
这里写图片描述

训练和提取特征

这里写图片描述
这里写图片描述

不同 m 的性能指标

这里写图片描述
这里写图片描述

不同 m 的效果, 这个图很形象啊!

这里写图片描述
这里写图片描述

LFW and YTF dataset 性能

这里写图片描述
这里写图片描述

不同卷积层数目的性能对比

这里写图片描述
这里写图片描述

MegaFace challenge

这里写图片描述
这里写图片描述
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年08月18日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
人脸识别
腾讯云神图·人脸识别(Face Recognition)基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、比对、搜索、验证、五官定位、活体检测等多种功能,为开发者和企业提供高性能高可用的人脸识别服务。 可应用于在线娱乐、在线身份认证等多种应用场景,充分满足各行业客户的人脸属性识别及用户身份确认等需求。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档