Spaces:
Running
Running
update
Browse files
examples/clean_unet_aishell/run.sh
CHANGED
@@ -12,7 +12,7 @@ sh run.sh --stage 2 --stop_stage 2 --system_version centos --file_folder_name fi
|
|
12 |
--noise_dir "/data/tianxing/HuggingDatasets/nx_noise/data/noise" \
|
13 |
--speech_dir "/data/tianxing/HuggingDatasets/aishell/data_aishell/wav/train"
|
14 |
|
15 |
-
sh run.sh --stage
|
16 |
--noise_dir "/data/tianxing/HuggingDatasets/nx_noise/data/noise" \
|
17 |
--speech_dir "/data/tianxing/HuggingDatasets/aishell/data_aishell/wav/train"
|
18 |
|
|
|
12 |
--noise_dir "/data/tianxing/HuggingDatasets/nx_noise/data/noise" \
|
13 |
--speech_dir "/data/tianxing/HuggingDatasets/aishell/data_aishell/wav/train"
|
14 |
|
15 |
+
sh run.sh --stage 1 --stop_stage 2 --system_version centos --file_folder_name file_dir \
|
16 |
--noise_dir "/data/tianxing/HuggingDatasets/nx_noise/data/noise" \
|
17 |
--speech_dir "/data/tianxing/HuggingDatasets/aishell/data_aishell/wav/train"
|
18 |
|
examples/clean_unet_aishell/step_2_train_model.py
CHANGED
@@ -221,7 +221,7 @@ def main():
|
|
221 |
# training loop
|
222 |
|
223 |
# state
|
224 |
-
|
225 |
average_loss = 10000000000
|
226 |
average_ae_loss = 10000000000
|
227 |
average_sc_loss = 10000000000
|
@@ -369,11 +369,11 @@ def main():
|
|
369 |
# save metric
|
370 |
if best_metric is None:
|
371 |
best_idx_epoch = idx_epoch
|
372 |
-
best_metric =
|
373 |
-
elif
|
374 |
# great is better.
|
375 |
best_idx_epoch = idx_epoch
|
376 |
-
best_metric =
|
377 |
else:
|
378 |
pass
|
379 |
|
@@ -381,7 +381,7 @@ def main():
|
|
381 |
"idx_epoch": idx_epoch,
|
382 |
"best_idx_epoch": best_idx_epoch,
|
383 |
|
384 |
-
"
|
385 |
"loss": average_loss,
|
386 |
"ae_loss": average_ae_loss,
|
387 |
"sc_loss": average_sc_loss,
|
|
|
221 |
# training loop
|
222 |
|
223 |
# state
|
224 |
+
average_pesq_score = 10000000000
|
225 |
average_loss = 10000000000
|
226 |
average_ae_loss = 10000000000
|
227 |
average_sc_loss = 10000000000
|
|
|
369 |
# save metric
|
370 |
if best_metric is None:
|
371 |
best_idx_epoch = idx_epoch
|
372 |
+
best_metric = average_pesq_score
|
373 |
+
elif average_pesq_score > best_metric:
|
374 |
# great is better.
|
375 |
best_idx_epoch = idx_epoch
|
376 |
+
best_metric = average_pesq_score
|
377 |
else:
|
378 |
pass
|
379 |
|
|
|
381 |
"idx_epoch": idx_epoch,
|
382 |
"best_idx_epoch": best_idx_epoch,
|
383 |
|
384 |
+
"pesq_score": average_pesq_score,
|
385 |
"loss": average_loss,
|
386 |
"ae_loss": average_ae_loss,
|
387 |
"sc_loss": average_sc_loss,
|
toolbox/torchaudio/models/tcnn/__init__.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/python3
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
|
4 |
+
|
5 |
+
if __name__ == '__main__':
|
6 |
+
pass
|
toolbox/torchaudio/models/tcnn/modeling_tcnn.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/python3
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
"""
|
4 |
+
https://github.com/LXP-Never/TCNN
|
5 |
+
|
6 |
+
https://ieeexplore.ieee.org/abstract/document/8683634
|
7 |
+
|
8 |
+
参考来源:
|
9 |
+
https://github.com/WenzheLiu-Speech/awesome-speech-enhancement
|
10 |
+
|
11 |
+
"""
|
12 |
+
|
13 |
+
|
14 |
+
if __name__ == '__main__':
|
15 |
+
pass
|