Spaces:
Runtime error
Runtime error
Update inference/mastering_transfer.py
Browse files
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 |
-
|
145 |
-
sf.write(
|
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 |
|