PhotoTour¶
- class torchvision.datasets.PhotoTour(root: Union[str, Path], name: str, train: bool = True, transform: Optional[Callable] = None, download: bool = False)[source]¶
多视图立体匹配 数据集。
注意
我们仅提供数据集的新版本,因为作者称该版本
更适合训练基于高斯差分或 Harris 角点的描述符,因为这些图像块以真实兴趣点检测为中心,而不是像旧数据集那样是 3D 点的投影。
原始数据集可在 http://phototour.cs.washington.edu/patches/default.htm 访问。
- 参数:
root (str 或
pathlib.Path
) – 图像所在的根目录。name (string) – 要加载的数据集的名称。
transform (callable, optional) – 一个函数/变换,它接收 PIL 图像并返回变换后的版本。
download (bool, optional) – 如果为 True,则从互联网下载数据集并将其放入根目录。如果数据集已下载,则不会再次下载。
- 特殊成员: