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