Caltech256¶
- class torchvision.datasets.Caltech256(root: str, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, download: bool = False)[原始碼]¶
Caltech 256 資料集。
- 引數:
root (str or
pathlib.Path) – 資料集的根目錄,其中caltech256目錄存在或將在 download 設定為 True 時被建立。transform (callable, optional) – 一個函式/變換,接受 PIL 影像並返回變換後的版本。例如,
transforms.RandomCroptarget_transform (可呼叫物件, 可選) – 一個函式/變換,接受目標並對其進行變換。
download (bool, optional) – 如果為 True,則從網際網路下載資料集並將其放入根目錄。如果資料集已下載,則不會再次下載。
- 特殊成員: