HoneyTian commited on
Commit
df77126
·
1 Parent(s): eb60dca
examples/conv_tasnet/run.sh CHANGED
@@ -3,7 +3,7 @@
3
  : <<'END'
4
 
5
 
6
- sh run.sh --stage 2 --stop_stage 2 --system_version centos --file_folder_name file_dir --final_model_name conv-tasnet-dns3-20250319 \
7
  --noise_dir "/data/tianxing/HuggingDatasets/nx_noise/data/noise/dns3-noise" \
8
  --speech_dir "/data/tianxing/HuggingDatasets/nx_noise/data/speech/dns3-speech" \
9
  --max_epochs 400
 
3
  : <<'END'
4
 
5
 
6
+ sh run.sh --stage 1 --stop_stage 2 --system_version centos --file_folder_name file_dir --final_model_name conv-tasnet-dns3-20250319 \
7
  --noise_dir "/data/tianxing/HuggingDatasets/nx_noise/data/noise/dns3-noise" \
8
  --speech_dir "/data/tianxing/HuggingDatasets/nx_noise/data/speech/dns3-speech" \
9
  --max_epochs 400
examples/conv_tasnet/step_1_prepare_data.py CHANGED
@@ -136,7 +136,7 @@ def main():
136
  "random1": random1,
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")
 
136
  "random1": random1,
137
  }
138
  row = json.dumps(row, ensure_ascii=False)
139
+ if random2 < (1 / 300 / 1):
140
  fvalid.write(f"{row}\n")
141
  else:
142
  ftrain.write(f"{row}\n")
toolbox/torchaudio/metrics/pesq.py CHANGED
@@ -47,7 +47,7 @@ def run_pesq_score(clean_audio_list: List[np.ndarray],
47
  sample_rate: int = 16000,
48
  mode: str = "wb",
49
  n_jobs: int = 4,
50
- ) -> List[float]:
51
 
52
  pesq_score_list = run_batch_pesq(clean_audio_list=clean_audio_list,
53
  noisy_audio_list=noisy_audio_list,
 
47
  sample_rate: int = 16000,
48
  mode: str = "wb",
49
  n_jobs: int = 4,
50
+ ) -> float:
51
 
52
  pesq_score_list = run_batch_pesq(clean_audio_list=clean_audio_list,
53
  noisy_audio_list=noisy_audio_list,