Datasets:
Size:
10K<n<100K
License:
test
Browse files- tomatotest.py +13 -12
tomatotest.py
CHANGED
@@ -78,15 +78,16 @@ class RGBSemanticDepthDataset(GeneratorBasedBuilder):
|
|
78 |
with open(split_txt, encoding="utf-8") as split_f:
|
79 |
all_splits = split_f.read().split('\n')
|
80 |
print(len(all_splits))
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
78 |
with open(split_txt, encoding="utf-8") as split_f:
|
79 |
all_splits = split_f.read().split('\n')
|
80 |
print(len(all_splits))
|
81 |
+
for archive in archives:
|
82 |
+
for path, file in archive:
|
83 |
+
print(path, all_splits[0])
|
84 |
+
if path not in all_splits:
|
85 |
+
continue
|
86 |
+
left_rgb, right_rgb, left_seg, left_depth, right_depth = self._h5_loader(file.read(), self.config.dataset_type)
|
87 |
+
yield path, {
|
88 |
+
"left_rgb": left_rgb,
|
89 |
+
"right_rgb": right_rgb,
|
90 |
+
"left_seg": left_seg,
|
91 |
+
"left_depth": left_depth,
|
92 |
+
"right_depth": right_depth,
|
93 |
+
}
|