MCPcopy
hub / github.com/modelscope/FunASR / reverse

Method reverse

funasr/models/data2vec/ema_module.py:136–146  ·  view source on GitHub ↗

Load the model parameters from EMA model. Useful for inference or fine-tuning from the EMA model.

(self, model)

Source from the content-addressed store, hash-verified

134 self._step_internal(new_model)
135
136 def reverse(self, model):
137 """
138 Load the model parameters from EMA model.
139 Useful for inference or fine-tuning from the EMA model.
140 """
141 d = self.model.state_dict()
142 if "_ema" in d:
143 del d["_ema"]
144
145 model.load_state_dict(d, strict=False)
146 return model

Callers 15

qCFunction · 0.80
decoder.jsFile · 0.80
iFunction · 0.80
tFunction · 0.80
HnFunction · 0.80
MoFunction · 0.80
NoFunction · 0.80
WebM_ExtractFunction · 0.80
WebM_ExtractFunction · 0.80
compute_wer_by_lineFunction · 0.80

Calls 2

state_dictMethod · 0.45
load_state_dictMethod · 0.45

Tested by

no test coverage detected