Spaces:
Running
Running
update
Browse files
examples/dfnet/step_2_train_model.py
CHANGED
@@ -87,7 +87,7 @@ class CollateFunction(object):
|
|
87 |
|
88 |
clean_audios = torch.stack(clean_audios)
|
89 |
noisy_audios = torch.stack(noisy_audios)
|
90 |
-
snr_db_list = torch.
|
91 |
|
92 |
# assert
|
93 |
if torch.any(torch.isnan(clean_audios)) or torch.any(torch.isinf(clean_audios)):
|
|
|
87 |
|
88 |
clean_audios = torch.stack(clean_audios)
|
89 |
noisy_audios = torch.stack(noisy_audios)
|
90 |
+
snr_db_list = torch.tensor(snr_db_list)
|
91 |
|
92 |
# assert
|
93 |
if torch.any(torch.isnan(clean_audios)) or torch.any(torch.isinf(clean_audios)):
|