Kitti¶
- class torchvision.datasets.Kitti(root: Union[str, Path], train: bool = True, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None, download: bool = False)[原始碼]¶
KITTI 資料集。
它對應於“物體左側彩色影像”資料集,用於物體檢測。
- 引數:
root (str 或
pathlib.Path) –圖片下載到的根目錄。如果 download=False,則需要以下資料夾結構
<root> └── Kitti └─ raw ├── training | ├── image_2 | └── label_2 └── testing └── image_2train (bool, 可選) – 如果為 true,則使用
train分割集,否則使用test分割集。預設為train。transform (callable, 可選) – 一個函式/轉換,接受 PIL 影像並返回轉換後的版本。例如,
transforms.PILToTensortarget_transform (callable, 可選) – 一個函式/轉換,接受目標並對其進行轉換。
transforms (callable, 可選) – 一個函式/轉換,接受輸入樣本及其目標作為輸入,並返回轉換後的版本。
download (bool, 可選) – 如果為 true,則從網際網路下載資料集並將其放在根目錄中。如果資料集已下載,則不會再次下載。
- 特殊成員: