lukas-blecher / LaTeX-OCR

pix2tex: Using a ViT to convert images of equations into LaTeX code.
https://lukas-blecher.github.io/LaTeX-OCR/
MIT License
12.7k stars 1.03k forks source link

weight not match model #391

Open ZejunCao opened 3 months ago

ZejunCao commented 3 months ago

RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict: "decoder.net.token_emb.emb.weight", "decoder.net.attn_layers.layers.0.0.0.gamma", "decoder.net.attn_layers.layers.1.0.0.gamma", "decoder.net.attn_layers.layers.2.0.0.gamma", ............. Unexpected key(s) in state_dict: "decoder.net.norm.weight", "decoder.net.norm.bias", "decoder.net.token_emb.weight", "decoder.net.attn_layers.layers.0.0.weight", "decoder.net.attn_layers.layers.0.0.bias", ...........

The weight downloaded as required does not match the model. Does anyone know how to slove it?