jhtonyKoo commited on
Commit
6231cca
1 Parent(s): 12de70d

Update inference/mastering_transfer.py

Browse files
Files changed (1) hide show
  1. inference/mastering_transfer.py +2 -0
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)