游雁
2024-03-25 64d6ef50403903c1c97c827420a84e9e42756a6a
Merge branch 'main' of github.com:alibaba-damo-academy/FunASR
merge
1个文件已修改
3 ■■■■■ 已修改文件
funasr/models/campplus/utils.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/models/campplus/utils.py
@@ -177,6 +177,9 @@
    return res
def smooth(res, mindur=1):
    # if only one segment, return directly
    if len(res) < 2:
        return res
    # short segments are assigned to nearest speakers.
    for i in range(len(res)):
        res[i][0] = round(res[i][0], 2)