-
Hello, I'm new to k2, but have prior experience with flashlight / Espnet. Can somebody point me in the right direction to do transfer learning with k2 ? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, dst_state_dict = model.state_dict()
src_state_dict = checkpoint["model"]
for key in src_state_dict:
if src_state_dict[key].shape != dst_state_dict[key].shape:
src_state_dict[key] = dst_state_dict[key]
model.load_state_dict(src_state_dict, strict=strict) |
Beta Was this translation helpful? Give feedback.
-
For fine-tuning, please follow this PR: #944 |
Beta Was this translation helpful? Give feedback.
For fine-tuning, please follow this PR: #944
For adaption, please follow this PR: #1059