Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdapterASR加载模型问题 #112

Open
majortsui opened this issue Aug 3, 2023 · 0 comments
Open

AdapterASR加载模型问题 #112

majortsui opened this issue Aug 3, 2023 · 0 comments

Comments

@majortsui
Copy link

majortsui commented Aug 3, 2023

您好!在使用adapter时遇到了加载模型的问题:
Traceback (most recent call last):
File "train.py", line 483, in
modules_to_load=modules_to_load, exclude_modules=exclude_modules)
File "/opt/espnet/egs/commonvoice/asr1/AdapterASR/utils.py", line 90, in load_pretrained_model
model.load_state_dict(dst_state)
File "/opt/miniconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1605, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for E2E:RuntimeError: Error(s) in loading state_dict for E2E:
Unexpected key(s) in state_dict: "encoder.encoders.positional_embedding", "encoder.encoders.conv1.weight", "encoder.encoders.conv1.bias", "encoder.encoders.conv2.weight", "encoder.encoders.conv2.bias", "encoder.encoders.blocks.0.attn.query.weight", "encoder.encoders.blocks.0.attn.query.bias", "encoder.encoders.blocks.0.attn.key.weight", "encoder.encoders.blocks.0.attn.value.weight", "encoder.encoders.blocks.0.attn.value.bias", "encoder.encoders.blocks.0.attn.out.weight",...
请问怎样解决呢?感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant