Skip to content

Pretrained model: size mismatch #14

@tow70

Description

@tow70

I get the following error when trying to load the pretrained model from www.space.ntu.edu.tw:

RuntimeError: Error(s) in loading state_dict for EncoderRNN:
size mismatch for embedding.weight: copying a param with shape torch.Size([92383, 512]) from checkpoint, the shape in current model is torch.Size([92391, 512]).

The sizes seem to be different from each other. How can I make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions