jhtonyKoo commited on
Commit
9e9592e
1 Parent(s): 6231cca

Update inference/mastering_transfer.py

Browse files
Files changed (1) hide show
  1. inference/mastering_transfer.py +2 -2
inference/mastering_transfer.py CHANGED
@@ -141,8 +141,8 @@ class Mastering_Style_Transfer_Inference:
141
  fin_data_out_mastered = fin_data_out[:, :input_aud.shape[-1]].numpy()
142
 
143
  # remix
144
- fin_output_path = os.path.join(cur_out_dir, f"remastered_output.wav")
145
- sf.write(fin_output_path, fin_data_out_mastered.transpose(-1, -2), self.args.sample_rate, 'PCM_16')
146
 
147
  return fin_output_path_mastering
148
 
 
141
  fin_data_out_mastered = fin_data_out[:, :input_aud.shape[-1]].numpy()
142
 
143
  # remix
144
+ fin_output_path_mastering = os.path.join(cur_out_dir, f"remastered_output.wav")
145
+ sf.write(fin_output_path_mastering, fin_data_out_mastered.transpose(-1, -2), self.args.sample_rate, 'PCM_16')
146
 
147
  return fin_output_path_mastering
148