当前位置:网站首页>对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
2022-07-07 09:09:00 【InfoQ】

- 诸神黄昏时代的对比学习
- “军备竞赛”时期的对比学习好。
- 将整个imagenet做成字典,从中抽取一个mini batch作为正样本。再从中随机抽取4096条作为负样本。
- 从数据集中抽取一个mini batch对其增广,使用一个孪生网络,将原图放进一个网络,将增强之后的图放进另一个网络,二者同时进行训练,对二者使用一个NCE loss或者infoNCE loss。一张图片和它的增广作为正样本,剩余的图片及其增广作为负样本。
- 从数据集中抽取一个mini batch对其进行两次增广,使用一个孪生网络,将一组图片增强放进一个网络,将另一组图片增强放进另一个网络,二者同时进行训练,对二者使用一个NCE loss或者infoNCE loss。
- 它可能会重复的抽取到同一数据。虽然你数据集有很多图片,但是你从中抽可能会抽到相同的图片。极端的情况下,如果你抽到一组图片作为正样本,然后你又抽到同样重复的一组图片作为负样本。那这样就会对训练造成影响。
- 也可能不具有整个数据集的代表性。比如这个数据其实有很多很多种动物,但是你抽到的都是狗,这样数据就是没有代表性的。
- 当然这样的选取的越全面效果越好,但是如果你选取的过多的负样本又会造成计算资源的浪费。

- 先说重复问题:因为你使用的是聚类中心进行比较。虽然是不同的聚类中心,那么他肯定不可能出现重复的情况。
- 再说一下没有代表性的问题:聚类就是将众多的图片聚成不同的类别。与每一个类别的中心进行对比,是绝对具有代表性的。
- 再说一下过去有过多负样本造成资源浪费的问题。如果要跟很多的负样本去做类比,可能就需要成千上万的负样本,而且即使如此也只是一个近似,而如果只是跟聚类中心做对比,则可以用几百或者最多3,000个聚类中心,就足以表示了。大大减少了计算资源消耗。

边栏推荐
- Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
- MPX plug-in
- Socket socket programming
- SQL Server knowledge collection 11: Constraints
- Activity生命周期
- Eth trunk link switching delay is too high
- Ffmpeg record a video command from RTSP
- 使用引用
- Wallhaven wallpaper desktop version
- Use of dotween
猜你喜欢

IDEA快捷键大全

面试被问到了解哪些开发模型?看这一篇就够了

关于测试人生的一站式发展建议

自动化测试框架

From pornographic live broadcast to live broadcast E-commerce

How to remove addition and subtraction from inputnumber input box
![[untitled]](/img/8e/e968d4629004bb0c3ee70328b6777b.jpg)
[untitled]

从色情直播到直播电商

Unity script generates configurable files and loads

Still cannot find RPC dispatcher table failed to connect in virtual KD
随机推荐
Wallhaven壁纸桌面版
The difference between monotonicity constraint and anti monotonicity constraint
When initializing 'float', what is the difference between converting to 'float' and adding 'f' as a suffix?
在我有限的软件测试经历里,一段专职的自动化测试经验总结
Typescript interface inheritance
Verilog 实现数码管显视驱动【附源码】
SQL Server knowledge collection 11: Constraints
Eth trunk link switching delay is too high
Interprocess communication (IPC)
Go slice comparison
Idea shortcut keys
Go-Redis 中间件
Unity websocket server
A simple example of delegate usage
Transaction rolled back because it has been marked as rollback only
从色情直播到直播电商
Process control (creation, termination, waiting, program replacement)
The sixth training assignment
面试被问到了解哪些开发模型?看这一篇就够了
What if copying is prohibited?