shixian.shi
2023-10-19 3be08cbc2ff48139eaf379959677ce9a00b540d9
bug fix for libtorch tp
1个文件已修改
2 ■■■ 已修改文件
funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/libtorch/funasr_torch/utils/timestamp_utils.py
@@ -3,7 +3,7 @@
def time_stamp_lfr6_onnx(us_cif_peak, char_list, begin_time=0.0, total_offset=-1.5):
    if not len(char_list):
        return []
        return '', []
    START_END_THRESHOLD = 5
    MAX_TOKEN_DURATION = 30
    TIME_RATE = 10.0 * 6 / 1000 / 3  #  3 times upsampled