当前位置:网站首页>對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
2022-07-07 11:15:00 【InfoQ】

- 諸神黃昏時代的對比學習
- “軍備競賽”時期的對比學習好。
- 將整個imagenet做成字典,從中抽取一個mini batch作為正樣本。再從中隨機抽取4096條作為負樣本。
- 從數據集中抽取一個mini batch對其增廣,使用一個孿生網絡,將原圖放進一個網絡,將增强之後的圖放進另一個網絡,二者同時進行訓練,對二者使用一個NCE loss或者infoNCE loss。一張圖片和它的增廣作為正樣本,剩餘的圖片及其增廣作為負樣本。
- 從數據集中抽取一個mini batch對其進行兩次增廣,使用一個孿生網絡,將一組圖片增强放進一個網絡,將另一組圖片增强放進另一個網絡,二者同時進行訓練,對二者使用一個NCE loss或者infoNCE loss。
- 它可能會重複的抽取到同一數據。雖然你數據集有很多圖片,但是你從中抽可能會抽到相同的圖片。極端的情况下,如果你抽到一組圖片作為正樣本,然後你又抽到同樣重複的一組圖片作為負樣本。那這樣就會對訓練造成影響。
- 也可能不具有整個數據集的代錶性。比如這個數據其實有很多很多種動物,但是你抽到的都是狗,這樣數據就是沒有代錶性的。
- 當然這樣的選取的越全面效果越好,但是如果你選取的過多的負樣本又會造成計算資源的浪費。

- 先說重複問題:因為你使用的是聚類中心進行比較。雖然是不同的聚類中心,那麼他肯定不可能出現重複的情况。
- 再說一下沒有代錶性的問題:聚類就是將眾多的圖片聚成不同的類別。與每一個類別的中心進行對比,是絕對具有代錶性的。
- 再說一下過去有過多負樣本造成資源浪費的問題。如果要跟很多的負樣本去做類比,可能就需要成千上萬的負樣本,而且即使如此也只是一個近似,而如果只是跟聚類中心做對比,則可以用幾百或者最多3,000個聚類中心,就足以錶示了。大大减少了計算資源消耗。

边栏推荐
- [untitled]
- 2021-04-23
- Add a self incrementing sequence number to the antd table component
- Creative information was surveyed by 2 institutions: greatdb database has been deployed in 9 places
- 通过 Play Integrity API 的 nonce 字段提高应用安全性
- The sixth training assignment
- Avoid mutating a prop directly since the value will be overwritten whenever the parent component
- Force buckle 1002 Find common characters
- "Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
- Go Slice 比较
猜你喜欢
Debezium同步之Debezium架构详解
uniCloud
Force buckle 1002 Find common characters
[OneNote] can't connect to the network and can't sync the problem
Unity script visualization about layout code
2021-04-08
How to remove addition and subtraction from inputnumber input box
Transaction rolled back because it has been marked as rollback-only解决
2021 summary and 2022 outlook
在我有限的软件测试经历里,一段专职的自动化测试经验总结
随机推荐
Using ENSP to do MPLS pseudo wire test
Wallhaven壁纸桌面版
通过 Play Integrity API 的 nonce 字段提高应用安全性
Unity script generates configurable files and loads
POJ1821 Fence 题解报告
A simple example of delegate usage
2021 summary and 2022 outlook
Go Slice 比较
The use of list and Its Simulation Implementation
Process control (creation, termination, waiting, program replacement)
seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
“梦想杯”2017 年江苏省信息与未来小学生夏令营 IT 小能手 PK 之程序设计试题
Kitex 重试机制
Bookmarking - common website navigation for programmers
Static semantic check of clang tidy in cicd
Unity websocket server
Laya common script commands
常用sql语句整理:mysql
Unity websocket client
测试开发基础,教你做一个完整功能的Web平台之环境准备