Spaces:
Running
Running
update
Browse files
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
|