【发布时间】:2021-04-08 08:59:00
【问题描述】:
我有一个关于 Phototour 数据集的 Mean 和 Std 计算的问题。
Phototour 数据集提供了对应的各种形状的补丁 (64,64,1) 来训练一个描述符(通常是 CNN 网络)。
这些补丁是从原始图像中提取的。这些原始图像是由来自世界各地的游客以不同的图像分辨率从特定地点(Notredame、Liberty、Yosemite)拍摄的。每个补丁(32, 32)的中心是 SIFT 检测器检测到的关键点。
例如,在这些数据集中,我们从 Notredame 的 715 张图像中提取了近 50 万个补丁。
数据集的链接: http://phototour.cs.washington.edu/
在 Pytorch Phototour 数据集中,他们定义如下:
means = {'notredame': 0.4854, 'yosemite': 0.4844, 'liberty': 0.4437,
'notredame_harris': 0.4854, 'yosemite_harris': 0.4844, 'liberty_harris': 0.4437}
stds = {'notredame': 0.1864, 'yosemite': 0.1818, 'liberty': 0.2019,
'notredame_harris': 0.1864, 'yosemite_harris': 0.1818, 'liberty_harris': 0.2019}
- 如何重现这两个参数?
- 我必须计算提取的补丁或原始图像的平均值和标准差吗?
任何帮助将不胜感激。
【问题讨论】:
-
能否请您详细说明minimal reproducible example?
-
提取的补丁是什么意思?
-
是的,当然@LazyCoder。我已经用额外的解释编辑了帖子。
-
@Ivan 我已经编辑了帖子,但此外,每个补丁都是从图像中提取的。补丁中心 (32, 32) 是 SIFT 检测器检测到的关键点。在这些数据集中,我们从 715 张图像中提取了近 50 万个补丁。
标签: python pytorch dataset std mean