RobustScanner - size mismatch for decoder.hybrid_decoder.embedding.weight #1800
Vania-Guima
started this conversation in
General
Replies: 1 comment 1 reply
-
Seems like you have modified the dictionary file, it affects the model's parameter as well. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I downloaded your pre-trained RobustScanner model. Doing the inference in the Unitail dataset, the following warning appears:
size mismatch for decoder.hybrid_decoder.embedding.weight: copying a param with shape torch.Size([93, 128]) from checkpoint, the shape in current model is torch.Size([92, 128]).
size mismatch for decoder.prediction.weight: copying a param with shape torch.Size([93, 512]) from checkpoint, the shape in current model is torch.Size([92, 512]).
size mismatch for decoder.prediction.bias: copying a param with shape torch.Size([93]) from checkpoint, the shape in current model is torch.Size([92]).
Comparing your log file and my configuration file, all the parameters are the same. Where can I change the size of decoder?
Beta Was this translation helpful? Give feedback.
All reactions