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 |
--max_count 10000
|
|
|
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 2 --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 |
--max_count 10000
|
examples/clean_unet_aishell/step_2_train_model.py
CHANGED
@@ -225,7 +225,11 @@ def main():
|
|
225 |
clean_audios = clean_audios.to(device)
|
226 |
noisy_audios = noisy_audios.to(device)
|
227 |
|
|
|
|
|
|
|
228 |
enhanced_audios = model.forward(noisy_audios)
|
|
|
229 |
|
230 |
ae_loss = ae_loss_fn(enhanced_audios, clean_audios)
|
231 |
sc_loss, mag_loss = mr_stft_loss_fn(enhanced_audios.squeeze(1), clean_audios.squeeze(1))
|
|
|
225 |
clean_audios = clean_audios.to(device)
|
226 |
noisy_audios = noisy_audios.to(device)
|
227 |
|
228 |
+
print(f"clean_audios shape: {clean_audios.shape}, dtype: {clean_audios.dtype}")
|
229 |
+
print(f"noisy_audios shape: {noisy_audios.shape}, dtype: {noisy_audios.dtype}")
|
230 |
+
|
231 |
enhanced_audios = model.forward(noisy_audios)
|
232 |
+
print(f"enhanced_audios shape: {enhanced_audios.shape}, dtype: {enhanced_audios.dtype}")
|
233 |
|
234 |
ae_loss = ae_loss_fn(enhanced_audios, clean_audios)
|
235 |
sc_loss, mag_loss = mr_stft_loss_fn(enhanced_audios.squeeze(1), clean_audios.squeeze(1))
|