游雁
2024-06-19 de0b35b3781b4069367250a0dc033652c5e89070
funasr/models/llm_asr/model.py
@@ -1018,7 +1018,7 @@
            for turn_id in range(fbank_beg.shape[1]):
                fbank_beg_idx = fbank_beg[batch_idx, turn_id].item()
                if fbank_beg[batch_idx, turn_id] > 0:
                if fbank_beg_idx > 0:
                    speech_token_len = fake_token_len[batch_idx, turn_id]
                    speech_token = encoder_out[speech_idx, :speech_token_len, :]