Commit 4759c7bb authored by Anika Treffehn's avatar Anika Treffehn
Browse files

fixed get framewise

parent e33c9bf6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ def get_framewise(x: np.ndarray, chunk_size: int, zero_pad=False) -> np.ndarray:
    if x.shape[0] % chunk_size:
        last_chunk = x[n_frames * chunk_size :, :]
        if zero_pad:
            yield np.pad(last_chunk, [[0, x.shape[0] % chunk_size], [0, 0]])
            yield np.pad(last_chunk, [[0, chunk_size - (x.shape[0] % chunk_size)], [0, 0]])
        else:
            yield last_chunk