捷徑

PhotoTour

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

多視角立體對應資料集。

注意

我們僅提供較新版本的資料集,因為作者聲明它

更適合用於訓練基於高斯差分或哈里斯角點的描述子,因為這些圖塊以真實的興趣點檢測為中心,而不是像舊資料集中那樣是 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, Tensor]][source]
參數:

index (int) – 索引

傳回值:

(data1, data2, matches)

傳回類型:

tuple (元組)

文件

存取 PyTorch 的全面開發者文件

檢視文件

教學

取得適合初學者和進階開發者的深入教學

檢視教學

資源

尋找開發資源並獲得您問題的解答

檢視資源