HoneyTian commited on
Commit
b7562b3
·
1 Parent(s): 7c562cf
examples/conv_tasnet/step_1_prepare_data.py CHANGED
@@ -137,9 +137,9 @@ def main():
137
  }
138
  row = json.dumps(row, ensure_ascii=False)
139
  if random2 < (1 / 300 / 2):
140
- ftrain.write(f"{row}\n")
141
- else:
142
  fvalid.write(f"{row}\n")
 
 
143
 
144
  count += 1
145
  duration_seconds = count * args.duration
 
137
  }
138
  row = json.dumps(row, ensure_ascii=False)
139
  if random2 < (1 / 300 / 2):
 
 
140
  fvalid.write(f"{row}\n")
141
+ else:
142
+ ftrain.write(f"{row}\n")
143
 
144
  count += 1
145
  duration_seconds = count * args.duration