快捷方式

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,則從網際網路下載資料集並將其放入根目錄。如果資料集已下載,則不會再次下載。

特殊成員:

__getitem__(index: int) Union[Tensor, tuple[Any, Any, torch.Tensor]][source]
引數:

index (int) – 索引

返回:

(data1, data2, matches)

返回型別:

元組

文件

訪問全面的 PyTorch 開發者文件

檢視文件

教程

為初學者和高階開發者提供深入的教程

檢視教程

資源

查詢開發資源並讓您的問題得到解答

檢視資源