XingjianL commited on
Commit
e1be4b7
·
1 Parent(s): d0a0e92
Files changed (1) hide show
  1. tomatotest.py +4 -4
tomatotest.py CHANGED
@@ -60,26 +60,26 @@ class RGBSemanticDepthDataset(GeneratorBasedBuilder):
60
  SplitGenerator(
61
  name=Split.TRAIN,
62
  gen_kwargs={
63
- "archives": [dl_manager.iter_archive(archive) for archive in archives],
64
  "split_txt": split_metadata["train"]
65
  },
66
  ),
67
  SplitGenerator(
68
  name=Split.VALIDATION,
69
  gen_kwargs={
70
- "archives": [dl_manager.iter_archive(archive) for archive in archives],
71
  "split_txt": split_metadata["val"]
72
  },
73
  ),
74
  ]
75
 
76
  def _generate_examples(self, archives, split_txt):
77
- print(split_txt, archives)
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
- print(archive)
83
  for path, file in archive:
84
  print(path, all_splits[0])
85
  if path not in all_splits:
 
60
  SplitGenerator(
61
  name=Split.TRAIN,
62
  gen_kwargs={
63
+ "archives": [dl_manager.iter_archive(archive) for archive in archives["train"]],
64
  "split_txt": split_metadata["train"]
65
  },
66
  ),
67
  SplitGenerator(
68
  name=Split.VALIDATION,
69
  gen_kwargs={
70
+ "archives": [dl_manager.iter_archive(archive) for archive in archives["val"]],
71
  "split_txt": split_metadata["val"]
72
  },
73
  ),
74
  ]
75
 
76
  def _generate_examples(self, archives, split_txt):
77
+ #print(split_txt, archives)
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
+ #print(archive)
83
  for path, file in archive:
84
  print(path, all_splits[0])
85
  if path not in all_splits: