XingjianL commited on
Commit
cc7508e
1 Parent(s): 04a1354

test config

Browse files
Files changed (1) hide show
  1. tomatotest.py +2 -2
tomatotest.py CHANGED
@@ -14,7 +14,7 @@ class RGBSemanticDepthDataset(GeneratorBasedBuilder):
14
  BUILDER_CONFIGS = [
15
  CustomConfig(name="all", version="1.0.0", description="all"),
16
  CustomConfig(name="depth", version="1.0.0", description="depth"),
17
- CustomConfig(name="segment", version="1.0.0", description="segmentation"),
18
  ] # Configs initialization
19
  BUILDER_CONFIG_CLASS = CustomConfig
20
  def _info(self):
@@ -31,7 +31,7 @@ class RGBSemanticDepthDataset(GeneratorBasedBuilder):
31
  # Reference: https://github.com/dwofk/fast-depth/blob/master/dataloaders/dataloader.py#L8-L13
32
  f = io.BytesIO(bytes_stream)
33
  h5f = h5py.File(f, "r")
34
- #print(h5f.keys())
35
  left_rgb = self._read_jpg(h5f['rgb_left'][:])
36
  if type_dataset == 'depth':
37
  right_rgb = self._read_jpg(h5f['rgb_right'][:])
 
14
  BUILDER_CONFIGS = [
15
  CustomConfig(name="all", version="1.0.0", description="all"),
16
  CustomConfig(name="depth", version="1.0.0", description="depth"),
17
+ CustomConfig(name="seg", version="1.0.0", description="segmentation"),
18
  ] # Configs initialization
19
  BUILDER_CONFIG_CLASS = CustomConfig
20
  def _info(self):
 
31
  # Reference: https://github.com/dwofk/fast-depth/blob/master/dataloaders/dataloader.py#L8-L13
32
  f = io.BytesIO(bytes_stream)
33
  h5f = h5py.File(f, "r")
34
+ print(type_dataset)
35
  left_rgb = self._read_jpg(h5f['rgb_left'][:])
36
  if type_dataset == 'depth':
37
  right_rgb = self._read_jpg(h5f['rgb_right'][:])