VAD unequal stack size, remove debug change

This commit is contained in:
Max Bain
2023-05-26 20:39:19 +01:00
committed by GitHub
parent bc8a03881a
commit f1032bb40a

View File

@ -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