Shortcuts

照片之旅

class torchvision.datasets.PhotoTour(root: Union[str, Path], name: str, train: bool = True, transform: Optional[Callable] = None, download: bool = False)[source]

Multi-view Stereo Correspondence 数据集。

注意

我们只提供数据集的新版本,因为作者声明它

更适合基于高斯差分或哈里斯角点的描述符训练,因为这些补丁是以实际兴趣点检测为中心的,而不是像旧数据集中那样是3D点的投影。

原始数据集可在http://phototour.cs.washington.edu/patches/default.htm获取。

Parameters:
  • root (str 或 pathlib.Path) – 图像所在的根目录。

  • name (string) – 要加载的数据集的名称。

  • transform (callable, optional) – 一个函数/变换,它接收一个PIL图像并返回一个变换后的版本。

  • 下载 (bool, 可选) – 如果为真,则从互联网下载数据集并将其放入根目录。如果数据集已经下载,则不会再次下载。

Special-members:

__getitem__(index: int) Union[Tensor, Tuple[Any, Any, Tensor]][source]
Parameters:

index (int) – 索引

Returns:

(data1, data2, matches)

Return type:

tuple