mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
make no beam consistent with backtrack.
This commit is contained in:
@ -543,7 +543,7 @@ def backtrack_beam(trellis, emission, tokens, blank_id=0, beam_width=5):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if not beams:
|
if not beams:
|
||||||
raise ValueError("No valid path found")
|
return None
|
||||||
|
|
||||||
best_beam = beams[0]
|
best_beam = beams[0]
|
||||||
t = best_beam.time_index
|
t = best_beam.time_index
|
||||||
|
Reference in New Issue
Block a user