XingjianL commited on
Commit
13f81de
1 Parent(s): c33d213
Files changed (1) hide show
  1. 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
- for archive in archives:
82
- for path, file in archive:
83
- if path not in all_splits:
84
- continue
85
- left_rgb, right_rgb, left_seg, left_depth, right_depth = self._h5_loader(file.read(), self.config.dataset_type)
86
- yield path, {
87
- "left_rgb": left_rgb,
88
- "right_rgb": right_rgb,
89
- "left_seg": left_seg,
90
- "left_depth": left_depth,
91
- "right_depth": right_depth,
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
+ }