雾聪
2024-05-15 35d8c884a5a375361c416440431b9339c6e47585
Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main
2个文件已修改
6 ■■■■ 已修改文件
funasr/models/sense_voice/whisper_lib/decoding.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/version.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/models/sense_voice/whisper_lib/decoding.py
@@ -63,8 +63,8 @@
    else:
        x = x.to(mel.device)
    # FIX(funasr): sense vocie
    # logits = model.logits(x[:, :-1], mel)[:, -1]
    logits = model.logits(x[:, :], mel)[:, -1]
    logits = model.logits(x[:, :-1], mel)[:, -1]
    # logits = model.logits(x[:, :], mel)[:, -1]
    # collect detected languages; suppress all non-language tokens
    mask = torch.ones(logits.shape[-1], dtype=torch.bool)
funasr/version.txt
@@ -1 +1 @@
1.0.26
1.0.27