Spaces:
Runtime error
Runtime error
Update inference.py
Browse files- inference.py +2 -1
inference.py
CHANGED
@@ -161,7 +161,8 @@ def main():
|
|
161 |
print('inverse stft of instruments...', end=' ')
|
162 |
wave = spec_utils.spectrogram_to_wave(y_spec, hop_length=args.hop_length)
|
163 |
print('done')
|
164 |
-
sf.write('{}{}_Instruments.wav'.format(output_dir, basename), wave.T, sr)
|
|
|
165 |
|
166 |
print('inverse stft of vocals...', end=' ')
|
167 |
wave = spec_utils.spectrogram_to_wave(v_spec, hop_length=args.hop_length)
|
|
|
161 |
print('inverse stft of instruments...', end=' ')
|
162 |
wave = spec_utils.spectrogram_to_wave(y_spec, hop_length=args.hop_length)
|
163 |
print('done')
|
164 |
+
# sf.write('{}{}_Instruments.wav'.format(output_dir, basename), wave.T, sr)
|
165 |
+
sf.write('{}Instruments.wav'.format(output_dir), wave.T, sr)
|
166 |
|
167 |
print('inverse stft of vocals...', end=' ')
|
168 |
wave = spec_utils.spectrogram_to_wave(v_spec, hop_length=args.hop_length)
|