Skip to content

Commit

Permalink
fix Audio buffer is not finite everywhere (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lixi20 committed Sep 15, 2024
1 parent 977e532 commit 386ff42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio_separator/separator/uvr_lib_v5/spec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def cmb_spectrogram_to_wave(spec_m, mp, extra_bins_h=None, extra_bins=None, is_v

for d in range(1, bands_n + 1):
bp = mp.param["band"][d]
spec_s = np.ndarray(shape=(2, bp["n_fft"] // 2 + 1, spec_m.shape[2]), dtype=complex)
spec_s = np.zeros(shape=(2, bp["n_fft"] // 2 + 1, spec_m.shape[2]), dtype=complex)
h = bp["crop_stop"] - bp["crop_start"]
spec_s[:, bp["crop_start"] : bp["crop_stop"], :] = spec_m[:, offset : offset + h, :]

Expand Down

0 comments on commit 386ff42

Please sign in to comment.