Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
fix bug
游雁e86630ac2045
diff --git a/funasr/train_utils/load_pretrained_model.py b/funasr/train_utils/load_pretrained_model.pyindex 1705115c0..ceab4ee1e 100644--- a/funasr/train_utils/load_pretrained_model.py+++ b/funasr/train_utils/load_pretrained_model.py@@ -107,12 +107,12 @@ def load_pretrained_model(src_state = {k: v for k, v in src_state.items() if not k.startswith(e)}dst_state = obj.state_dict()- dst_state = assigment_scope_map(dst_state, src_state, scope_map)+ src_state = assigment_scope_map(dst_state, src_state, scope_map)if ignore_init_mismatch:src_state = filter_state_dict(dst_state, src_state)logging.debug("Loaded src_state keys: {}".format(src_state.keys()))logging.debug("Loaded dst_state keys: {}".format(dst_state.keys()))- # dst_state.update(src_state)- obj.load_state_dict(dst_state)+ dst_state.update(src_state)+ obj.load_state_dict(dst_state, strict=True)