ulysses115 commited on
Commit
844ee1d
·
1 Parent(s): 3a65292

Update infer.py

Browse files
Files changed (1) hide show
  1. infer.py +1 -1
infer.py CHANGED
@@ -68,7 +68,7 @@ def run_clip(svc_model, key, acc, use_pe, use_crepe, thre, use_gt_mel, add_noise
68
  if out_path is None:
69
  out_path = f'./results/{clean_name}_{key}key_{project_name}_{hparams["residual_channels"]}_{hparams["residual_layers"]}_{int(step / 1000)}k_{accelerate}x.{kwargs["format"]}'
70
  soundfile.write(out_path, audio, hparams["audio_sample_rate"], 'PCM_16',format=out_path.split('.')[-1])
71
- return np.array(f0_tst), np.array(f0_pred), audio
72
 
73
 
74
  if __name__ == '__main__':
 
68
  if out_path is None:
69
  out_path = f'./results/{clean_name}_{key}key_{project_name}_{hparams["residual_channels"]}_{hparams["residual_layers"]}_{int(step / 1000)}k_{accelerate}x.{kwargs["format"]}'
70
  soundfile.write(out_path, audio, hparams["audio_sample_rate"], 'PCM_16',format=out_path.split('.')[-1])
71
+ return np.array(f0_tst), np.array(f0_pred), np.array(audio)
72
 
73
 
74
  if __name__ == '__main__':