Datasets:
Size:
10K<n<100K
License:
test
Browse files- tomatotest.py +2 -2
tomatotest.py
CHANGED
@@ -45,11 +45,11 @@ class RGBSemanticDepthDataset(GeneratorBasedBuilder):
|
|
45 |
right_depth = h5f['depth_right'][:].astype(np.float32)
|
46 |
return left_rgb, right_rgb, np.zeros((1,1)), left_depth, right_depth
|
47 |
elif type_dataset == 'seg':
|
48 |
-
left_seg = h5f['seg_left'][
|
49 |
return left_rgb, np.zeros((1,1)), left_seg, np.zeros((1,1)), np.zeros((1,1))
|
50 |
else:
|
51 |
right_rgb = self._read_jpg(h5f['rgb_right'][:])
|
52 |
-
left_seg = h5f['seg_left'][
|
53 |
left_depth = h5f['depth_left'][:].astype(np.float32)
|
54 |
right_depth = h5f['depth_right'][:].astype(np.float32)
|
55 |
return left_rgb, right_rgb, left_seg, left_depth, right_depth
|
|
|
45 |
right_depth = h5f['depth_right'][:].astype(np.float32)
|
46 |
return left_rgb, right_rgb, np.zeros((1,1)), left_depth, right_depth
|
47 |
elif type_dataset == 'seg':
|
48 |
+
left_seg = h5f['seg_left'][:][:,:,::-1]
|
49 |
return left_rgb, np.zeros((1,1)), left_seg, np.zeros((1,1)), np.zeros((1,1))
|
50 |
else:
|
51 |
right_rgb = self._read_jpg(h5f['rgb_right'][:])
|
52 |
+
left_seg = h5f['seg_left'][:][:,:,::-1]
|
53 |
left_depth = h5f['depth_left'][:].astype(np.float32)
|
54 |
right_depth = h5f['depth_right'][:].astype(np.float32)
|
55 |
return left_rgb, right_rgb, left_seg, left_depth, right_depth
|