Загрузка
KITTI dataset from the 2012 stereo evaluation benchmark. Uses the RGB images for consistency with KITTI 2015.
The dataset is expected to have the following structure:
root
Kitti2012
testing
colored_0
1_10.png
2_10.png
...
colored_1
1_10.png
2_10.png
...
training
colored_0
1_10.png
2_10.png
...
colored_1
1_10.png
2_10.png
...
disp_noc
1.png
2.png
...
calib
root (str or pathlib.Path) – Root directory where Kitti2012 is located.
split (string, optional) – The dataset split of scenes, either “train” (default) or “test”.
transforms (callable, optional) – A function/transform that takes in a sample and returns a transformed version.
Return example at given index.
index (int) – The index of the example to retrieve
A 4-tuple with (img_left, img_right, disparity, valid_mask).
The disparity is a numpy array of shape (1, H, W) and the images are PIL images.
valid_mask is implicitly None if the transforms parameter does not
generate a valid mask.
Both disparity and valid_mask are None if the dataset split is test.