Update spec_utils.py

This commit is contained in:
aufr33 2021-09-29 16:06:15 +03:00 committed by GitHub
parent 25f1df6f58
commit 0b87f5d2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,7 @@ if __name__ == "__main__":
specs[0], specs[1] = trim_specs(specs[0], specs[1])
if args.algorithm == 'deep':
d_spec = np.where(np.abs(specs[0]) <= np.abs(spec[1]), specs[0], spec[1])
d_spec = np.where(np.abs(specs[0]) <= np.abs(specs[1]), specs[0], specs[1])
v_spec = d_spec - specs[1]
sf.write(os.path.join('{}.wav'.format(args.output_name)), cmb_spectrogram_to_wave(v_spec, mp), mp.param['sr'])