当前位置:网站首页>度量学习(Metric Learning)【AMSoftmax、Arcface】
度量学习(Metric Learning)【AMSoftmax、Arcface】
2022-06-12 22:47:00 【u013250861】
一、概述
度量学习 (Metric Learning) == 距离度量学习 (Distance Metric Learning,DML) == 相似度学习。
在数学中,一个度量(或距离函数)是一个定义集合中元素之间距离的函数。一个具有度量的集合被称为度量空间。度量学习(Metric Learning) 是人脸识别中常用的传统机器学习方法,由Eric Xing在NIPS 2002提出,可以分为两种:
- 通过线性变换的度量学习
- 通过非线性变化的度量
其基本原理是根据不同的任务来自主学习出针对某个特定任务的度量距离函数。后来度量学习又被迁移至文本分类领域,尤其是针对高维数据的文本处理,度量学习有很好的分类效果。
二、为什么用度量学习
K-means、K近邻方法、SVM等算法,比较依赖于输入时给定的度量,比如:数据之间的相似性,那么将面临的一个基本的问题是如何获取数据之间的相似度。
为了处理各种各样的特征相似度,我们可以在特定的任务通过选择合适的特征并手动构建距离函数。然而这种方法会需要很大的人工投入,也可能对数据的改变非常不鲁棒。
度量学习作为一个理想的替代,可以根据不同的任务来自主学习出针对某个特定任务的度量距离函数。
三、度量学习内容
根据不同的任务来自主学习出针对某个特定任务的度量距离函数。
通过计算两张图片之间的相似度,使得输入图片被归入到相似度大的图片类别中去。

四、与经典识别网络相比
经典识别网络有一个bug:必须提前设定好类别数。 这也就意味着,每增加一个新种类,就要重新定义网络模型,并从头训练一遍。
比如我们要做一个门禁系统,每增加或减少一个员工(等于是一个新类别),就要修改识别网络并重新训练。很明显,这种做法在某些实际运用中很不科学。
因此,Metric Learning作为经典识别网络的替代方案,可以很好地适应某些特定的图像识别场景。
一种较好的做法,是丢弃经典神经网络最后的softmax层,改成直接输出一根feature vector,去特征库里面按照Metric Learning寻找最近邻的类别作为匹配项。
目前,Metric Learning已被广泛运用于人脸识别的日常运用中。
边栏推荐
- 3.5 setup and teardown of test classes
- 【LeetCode】209. 长度最小的子数组
- Introduction to Quaternion
- Module 8 operation
- China Aquatic Fitness equipment market trend report, technical innovation and market forecast
- Huawei officially entered the "front loading" stage, and the millimeter wave radar track entered the "localization +4d" cycle
- Go时间格式化 赋值
- Generate the chrysanthemum code of the applet (generate the chrysanthemum code, change the middle logo, change the image size, and add text)
- 80 lines of code to realize simple rxjs
- Alcohol detector based on 51 single chip microcomputer
猜你喜欢
![[Part 7] source code analysis and application details of cyclicbarrier [key]](/img/bc/8ba2b86e599539a29683a63d02f0f7.jpg)
[Part 7] source code analysis and application details of cyclicbarrier [key]

Su embedded training day13 - file IO

Hostvars in ansible

Web3 principle and decentralization

80 lines of code to realize simple rxjs
![[web technology] 1348- talk about several ways to implement watermarking](/img/5f/c4f6ba6799202c79d1e9cb7a083952.png)
[web technology] 1348- talk about several ways to implement watermarking

数字藏品的发展趋势!
![[Part VI] source code analysis and application details of countdownlatch [key]](/img/6e/085e257c938a8c7b88c12c36df83e1.jpg)
[Part VI] source code analysis and application details of countdownlatch [key]

Huawei officially entered the "front loading" stage, and the millimeter wave radar track entered the "localization +4d" cycle

【建议收藏】通俗易懂图解网络知识-第一篇
随机推荐
42岁大厂高管,给30岁-39岁人提个醒:这6个让你变强的习惯,要尽快养成
Is it safe to open an account in flush? How to open an account online to buy stocks
【LeetCode】53.最大子数组和
Wechat applet withdrawal function
RAID disk array
ShardingSphere-proxy-5.0.0部署之分表实现(一)
Plusieurs camarades de classe de Tsinghua sont partis...
MOOG servo valve d634-341c/r40ko2m0nss2
Database daily question --- day 10: combine two tables
Several Tsinghua students I know have left
在同花顺开户证券安全吗,买股票怎么网上开户
Research Report on water sports shoes industry - market status analysis and development prospect forecast
Create a virtual thread using loom - David
Is it safe to open an account for flush stock account
【LeetCode】5. Longest Palindromic Substring
Design of traceid in the project
C # reading table data in word
【LeetCode】5. 最长回文子串
[Part 7] source code analysis and application details of cyclicbarrier [key]
Lua date time