mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
VAD unequal stack size, remove debug change
This commit is contained in:
@ -157,7 +157,7 @@ class Binarize:
|
|||||||
curr_scores = curr_scores[min_score_div_idx+1:]
|
curr_scores = curr_scores[min_score_div_idx+1:]
|
||||||
curr_timestamps = curr_timestamps[min_score_div_idx+1:]
|
curr_timestamps = curr_timestamps[min_score_div_idx+1:]
|
||||||
# switching from active to inactive
|
# switching from active to inactive
|
||||||
elif y <= self.offset:
|
elif y < self.offset:
|
||||||
region = Segment(start - self.pad_onset, t + self.pad_offset)
|
region = Segment(start - self.pad_onset, t + self.pad_offset)
|
||||||
active[region, k] = label
|
active[region, k] = label
|
||||||
start = t
|
start = t
|
||||||
@ -169,7 +169,7 @@ class Binarize:
|
|||||||
# currently inactive
|
# currently inactive
|
||||||
else:
|
else:
|
||||||
# switching from inactive to active
|
# switching from inactive to active
|
||||||
if y >= self.onset:
|
if y > self.onset:
|
||||||
start = t
|
start = t
|
||||||
is_active = True
|
is_active = True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user