mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
bug fix for libtorch tp
This commit is contained in:
parent
76efe7a09e
commit
3be08cbc2f
@ -3,7 +3,7 @@ import numpy as np
|
|||||||
|
|
||||||
def time_stamp_lfr6_onnx(us_cif_peak, char_list, begin_time=0.0, total_offset=-1.5):
|
def time_stamp_lfr6_onnx(us_cif_peak, char_list, begin_time=0.0, total_offset=-1.5):
|
||||||
if not len(char_list):
|
if not len(char_list):
|
||||||
return []
|
return '', []
|
||||||
START_END_THRESHOLD = 5
|
START_END_THRESHOLD = 5
|
||||||
MAX_TOKEN_DURATION = 30
|
MAX_TOKEN_DURATION = 30
|
||||||
TIME_RATE = 10.0 * 6 / 1000 / 3 # 3 times upsampled
|
TIME_RATE = 10.0 * 6 / 1000 / 3 # 3 times upsampled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user