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
) – 資料集根目錄,如果 download 設定為 True,則目錄caltech256
存在或將儲存到此處。transform (callable, optional) – 一個函數/轉換,它接受 PIL 圖像並返回一個轉換後的版本。例如,
transforms.RandomCrop
target_transform (callable, optional) – 一個函數/轉換,它接受目標並轉換它。
download (bool, optional) – 如果為 true,則從網際網路下載資料集並將其放入根目錄。如果已下載資料集,則不會再次下載。
- 特殊成員: