We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
您好!在使用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",... 请问怎样解决呢?感谢!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
您好!在使用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",...
请问怎样解决呢?感谢!
The text was updated successfully, but these errors were encountered: