Closed sif-boudjellal closed 10 months ago
size mismatch for linear.weight: copying a param with shape torch.Size([38, 256]) from checkpoint, the shape in current model is torch.Size([6683, 256]).
I assume you are using a new vocab, then you need to pass in the vocab file path when using export-onnx:
cnocr export-onnx -m densenet_lite_136-gru -v <path/to/vocab.txt> ...
Hello CnOCR Community,
I got this error when I tried to export the trained weights to Onnx.
The Error