From f1032bb40a4d39fa7a92cc6c2a1b071b282d8aa4 Mon Sep 17 00:00:00 2001 From: Max Bain <36994049+m-bain@users.noreply.github.com> Date: Fri, 26 May 2023 20:39:19 +0100 Subject: [PATCH] VAD unequal stack size, remove debug change --- whisperx/vad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whisperx/vad.py b/whisperx/vad.py index a7a2451..15a9e5e 100644 --- a/whisperx/vad.py +++ b/whisperx/vad.py @@ -157,7 +157,7 @@ class Binarize: curr_scores = curr_scores[min_score_div_idx+1:] curr_timestamps = curr_timestamps[min_score_div_idx+1:] # switching from active to inactive - elif y <= self.offset: + elif y < self.offset: region = Segment(start - self.pad_onset, t + self.pad_offset) active[region, k] = label start = t @@ -169,7 +169,7 @@ class Binarize: # currently inactive else: # switching from inactive to active - if y >= self.onset: + if y > self.onset: start = t is_active = True