Spaces:
Runtime error
Runtime error
Update inference/mastering_transfer.py
Browse files
inference/mastering_transfer.py
CHANGED
@@ -89,6 +89,8 @@ class Mastering_Style_Transfer_Inference:
|
|
89 |
|
90 |
input_aud = load_wav_segment(input_track_path, axis=0)
|
91 |
reference_aud = load_wav_segment(reference_track_path, axis=0)
|
|
|
|
|
92 |
|
93 |
cur_out_dir = './yt_dir/0/'
|
94 |
os.makedirs(cur_out_dir, exist_ok=True)
|
|
|
89 |
|
90 |
input_aud = load_wav_segment(input_track_path, axis=0)
|
91 |
reference_aud = load_wav_segment(reference_track_path, axis=0)
|
92 |
+
input_aud = torch.FloatTensor(input_aud).to(self.device)
|
93 |
+
reference_aud = torch.FloatTensor(reference_aud).to(self.device)
|
94 |
|
95 |
cur_out_dir = './yt_dir/0/'
|
96 |
os.makedirs(cur_out_dir, exist_ok=True)
|