Spaces:
Running
Running
update
Browse files
examples/dfnet/step_2_train_model.py
CHANGED
@@ -263,6 +263,7 @@ def main():
|
|
263 |
|
264 |
est_spec, est_wav, est_mask, lsnr = model.forward(noisy_audios)
|
265 |
|
|
|
266 |
neg_si_snr_loss = neg_si_snr_loss_fn.forward(est_wav, clean_audios)
|
267 |
mask_loss = model.mask_loss_fn(est_mask, clean_audios, noisy_audios)
|
268 |
# mr_stft_loss = mr_stft_loss_fn.forward(denoise_audios, clean_audios)
|
|
|
263 |
|
264 |
est_spec, est_wav, est_mask, lsnr = model.forward(noisy_audios)
|
265 |
|
266 |
+
print(f"est_mask.shape: {est_mask.shape}")
|
267 |
neg_si_snr_loss = neg_si_snr_loss_fn.forward(est_wav, clean_audios)
|
268 |
mask_loss = model.mask_loss_fn(est_mask, clean_audios, noisy_audios)
|
269 |
# mr_stft_loss = mr_stft_loss_fn.forward(denoise_audios, clean_audios)
|