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)[source]ΒΆ
KITTI Dataset.
It corresponds to the βleft color images of objectβ dataset, for object detection.
- Parameters:
root (str or
pathlib.Path
) βRoot directory where images are downloaded to. Expects the following folder structure if download=False:
<root> βββ Kitti ββ raw βββ training | βββ image_2 | βββ label_2 βββ testing βββ image_2
train (bool, optional) β Use
train
split if true, elsetest
split. Defaults totrain
.transform (callable, optional) β A function/transform that takes in a PIL image and returns a transformed version. E.g,
transforms.PILToTensor
target_transform (callable, optional) β A function/transform that takes in the target and transforms it.
transforms (callable, optional) β A function/transform that takes input sample and its target as entry and returns a transformed version.
download (bool, optional) β If true, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again.
- Special-members: