cdminix commited on
Commit
a61400e
·
1 Parent(s): ed267f2

add some logging for debugging

Browse files
Files changed (1) hide show
  1. libriheavy.py +2 -0
libriheavy.py CHANGED
@@ -122,7 +122,9 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
122
 
123
  def _generate_examples(self, speaker_chunks, split):
124
  """Yields examples."""
 
125
  for chunk in speaker_chunks:
 
126
  npz = dict(np.load(chunk["audio"], allow_pickle=True))
127
  utterances = npz.keys()
128
  with gzip.open(chunk["text"], "rt") as f:
 
122
 
123
  def _generate_examples(self, speaker_chunks, split):
124
  """Yields examples."""
125
+ print(f"Generating examples for {split}")
126
  for chunk in speaker_chunks:
127
+ print(f"Processing {chunk['id']}")
128
  npz = dict(np.load(chunk["audio"], allow_pickle=True))
129
  utterances = npz.keys()
130
  with gzip.open(chunk["text"], "rt") as f: