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