mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
bugfix python runtime
This commit is contained in:
parent
da76b1ff6e
commit
a730676ff1
@ -969,7 +969,7 @@ class LLMASR4(nn.Module):
|
||||
src_state = torch.load(init_param_path, map_location="cpu")
|
||||
flag = audio_adaptor.load_state_dict(src_state, strict=False)
|
||||
logging.info(f"Loading audio_adaptor ckpt: {init_param_path}, status: {flag}")
|
||||
freeze = audio_adaptor_conf.get("freeze", True)
|
||||
freeze = audio_adaptor_conf.get("freeze", False)
|
||||
if freeze:
|
||||
for name, param in audio_adaptor.named_parameters():
|
||||
param.requires_grad = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user