Exporting SVTR base model for text recognition #14820
Replies: 1 comment
-
The issue you are facing is due to a mismatch between the model architecture defined in your Possible Reasons and Solutions:
Summary of Next Steps:
By following these steps, you should be able to correctly export the SVTR model for inference. 🚀 Response generated by 🤖 feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to run text recognition inference using SVTR Base model (link) .
Config file used : configs/rec/rec_svtrnet.yml
link used to download the model : link
python version used : 3.10.14
Paddle ocr docker image : paddlepaddle/paddle:3.0.0rc1-gpu-cuda12.3-cudnn9.0-trt8.6
.
command used for inference :
python3 tools/export_model.py \ -c configs/rec/rec_svtrnet.yml \ -o Global.pretrained_model=./pretrain_models/rec_svtr_base_none_ctc_en_train/best_accuracy \ Global.save_inference_dir=./inference/rec_svtr_base_1
After running the above command , I get various warning as displayed at the end .
Basically the shapes of various parameters are not being matched and also some of the weights are not being initialized . What is the correct config file to use for the SVTR base model .
W0307 05:56:35.545917 15016 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 8.9, Driver API Version: 12.8, Runtime API Version: 12.3 W0307 05:56:35.546329 15016 gpu_resources.cc:164] device: 0, cuDNN Version: 9.1. [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.pos_embed [1, 200, 64] not matched with loaded params backbone.pos_embed [1, 480, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.0.conv.weight [32, 3, 3, 3] not matched with loaded params backbone.patch_embed.proj.0.conv.weight [64, 3, 3, 3] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.0.conv.bias [32] not matched with loaded params backbone.patch_embed.proj.0.conv.bias [64] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.0.norm.weight [32] not matched with loaded params backbone.patch_embed.proj.0.norm.weight [64] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.0.norm.bias [32] not matched with loaded params backbone.patch_embed.proj.0.norm.bias [64] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.0.norm._mean [32] not matched with loaded params backbone.patch_embed.proj.0.norm._mean [64] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.0.norm._variance [32] not matched with loaded params backbone.patch_embed.proj.0.norm._variance [64] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.1.conv.weight [64, 32, 3, 3] not matched with loaded params backbone.patch_embed.proj.1.conv.weight [128, 64, 3, 3] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.1.conv.bias [64] not matched with loaded params backbone.patch_embed.proj.1.conv.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.1.norm.weight [64] not matched with loaded params backbone.patch_embed.proj.1.norm.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.1.norm.bias [64] not matched with loaded params backbone.patch_embed.proj.1.norm.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.1.norm._mean [64] not matched with loaded params backbone.patch_embed.proj.1.norm._mean [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.patch_embed.proj.1.norm._variance [64] not matched with loaded params backbone.patch_embed.proj.1.norm._variance [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.norm1.weight [64] not matched with loaded params backbone.blocks1.0.norm1.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.norm1.bias [64] not matched with loaded params backbone.blocks1.0.norm1.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mixer.qkv.weight [64, 192] not matched with loaded params backbone.blocks1.0.mixer.qkv.weight [128, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mixer.qkv.bias [192] not matched with loaded params backbone.blocks1.0.mixer.qkv.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mixer.proj.weight [64, 64] not matched with loaded params backbone.blocks1.0.mixer.proj.weight [128, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mixer.proj.bias [64] not matched with loaded params backbone.blocks1.0.mixer.proj.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.norm2.weight [64] not matched with loaded params backbone.blocks1.0.norm2.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.norm2.bias [64] not matched with loaded params backbone.blocks1.0.norm2.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mlp.fc1.weight [64, 256] not matched with loaded params backbone.blocks1.0.mlp.fc1.weight [128, 512] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mlp.fc1.bias [256] not matched with loaded params backbone.blocks1.0.mlp.fc1.bias [512] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mlp.fc2.weight [256, 64] not matched with loaded params backbone.blocks1.0.mlp.fc2.weight [512, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.0.mlp.fc2.bias [64] not matched with loaded params backbone.blocks1.0.mlp.fc2.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.norm1.weight [64] not matched with loaded params backbone.blocks1.1.norm1.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.norm1.bias [64] not matched with loaded params backbone.blocks1.1.norm1.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mixer.qkv.weight [64, 192] not matched with loaded params backbone.blocks1.1.mixer.qkv.weight [128, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mixer.qkv.bias [192] not matched with loaded params backbone.blocks1.1.mixer.qkv.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mixer.proj.weight [64, 64] not matched with loaded params backbone.blocks1.1.mixer.proj.weight [128, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mixer.proj.bias [64] not matched with loaded params backbone.blocks1.1.mixer.proj.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.norm2.weight [64] not matched with loaded params backbone.blocks1.1.norm2.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.norm2.bias [64] not matched with loaded params backbone.blocks1.1.norm2.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mlp.fc1.weight [64, 256] not matched with loaded params backbone.blocks1.1.mlp.fc1.weight [128, 512] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mlp.fc1.bias [256] not matched with loaded params backbone.blocks1.1.mlp.fc1.bias [512] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mlp.fc2.weight [256, 64] not matched with loaded params backbone.blocks1.1.mlp.fc2.weight [512, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.1.mlp.fc2.bias [64] not matched with loaded params backbone.blocks1.1.mlp.fc2.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.norm1.weight [64] not matched with loaded params backbone.blocks1.2.norm1.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.norm1.bias [64] not matched with loaded params backbone.blocks1.2.norm1.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mixer.qkv.weight [64, 192] not matched with loaded params backbone.blocks1.2.mixer.qkv.weight [128, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mixer.qkv.bias [192] not matched with loaded params backbone.blocks1.2.mixer.qkv.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mixer.proj.weight [64, 64] not matched with loaded params backbone.blocks1.2.mixer.proj.weight [128, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mixer.proj.bias [64] not matched with loaded params backbone.blocks1.2.mixer.proj.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.norm2.weight [64] not matched with loaded params backbone.blocks1.2.norm2.weight [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.norm2.bias [64] not matched with loaded params backbone.blocks1.2.norm2.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mlp.fc1.weight [64, 256] not matched with loaded params backbone.blocks1.2.mlp.fc1.weight [128, 512] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mlp.fc1.bias [256] not matched with loaded params backbone.blocks1.2.mlp.fc1.bias [512] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mlp.fc2.weight [256, 64] not matched with loaded params backbone.blocks1.2.mlp.fc2.weight [512, 128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks1.2.mlp.fc2.bias [64] not matched with loaded params backbone.blocks1.2.mlp.fc2.bias [128] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample1.conv.weight [128, 64, 3, 3] not matched with loaded params backbone.sub_sample1.conv.weight [256, 128, 3, 3] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample1.conv.bias [128] not matched with loaded params backbone.sub_sample1.conv.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample1.norm.weight [128] not matched with loaded params backbone.sub_sample1.norm.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample1.norm.bias [128] not matched with loaded params backbone.sub_sample1.norm.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.norm1.weight [128] not matched with loaded params backbone.blocks2.0.norm1.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.norm1.bias [128] not matched with loaded params backbone.blocks2.0.norm1.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mixer.qkv.weight [128, 384] not matched with loaded params backbone.blocks2.0.mixer.qkv.weight [256, 768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mixer.qkv.bias [384] not matched with loaded params backbone.blocks2.0.mixer.qkv.bias [768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mixer.proj.weight [128, 128] not matched with loaded params backbone.blocks2.0.mixer.proj.weight [256, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mixer.proj.bias [128] not matched with loaded params backbone.blocks2.0.mixer.proj.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.norm2.weight [128] not matched with loaded params backbone.blocks2.0.norm2.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.norm2.bias [128] not matched with loaded params backbone.blocks2.0.norm2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mlp.fc1.weight [128, 512] not matched with loaded params backbone.blocks2.0.mlp.fc1.weight [256, 1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mlp.fc1.bias [512] not matched with loaded params backbone.blocks2.0.mlp.fc1.bias [1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mlp.fc2.weight [512, 128] not matched with loaded params backbone.blocks2.0.mlp.fc2.weight [1024, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.0.mlp.fc2.bias [128] not matched with loaded params backbone.blocks2.0.mlp.fc2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.norm1.weight [128] not matched with loaded params backbone.blocks2.1.norm1.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.norm1.bias [128] not matched with loaded params backbone.blocks2.1.norm1.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mixer.qkv.weight [128, 384] not matched with loaded params backbone.blocks2.1.mixer.qkv.weight [256, 768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mixer.qkv.bias [384] not matched with loaded params backbone.blocks2.1.mixer.qkv.bias [768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mixer.proj.weight [128, 128] not matched with loaded params backbone.blocks2.1.mixer.proj.weight [256, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mixer.proj.bias [128] not matched with loaded params backbone.blocks2.1.mixer.proj.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.norm2.weight [128] not matched with loaded params backbone.blocks2.1.norm2.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.norm2.bias [128] not matched with loaded params backbone.blocks2.1.norm2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mlp.fc1.weight [128, 512] not matched with loaded params backbone.blocks2.1.mlp.fc1.weight [256, 1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mlp.fc1.bias [512] not matched with loaded params backbone.blocks2.1.mlp.fc1.bias [1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mlp.fc2.weight [512, 128] not matched with loaded params backbone.blocks2.1.mlp.fc2.weight [1024, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.1.mlp.fc2.bias [128] not matched with loaded params backbone.blocks2.1.mlp.fc2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.norm1.weight [128] not matched with loaded params backbone.blocks2.2.norm1.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.norm1.bias [128] not matched with loaded params backbone.blocks2.2.norm1.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mixer.qkv.weight [128, 384] not matched with loaded params backbone.blocks2.2.mixer.qkv.weight [256, 768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mixer.qkv.bias [384] not matched with loaded params backbone.blocks2.2.mixer.qkv.bias [768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mixer.proj.weight [128, 128] not matched with loaded params backbone.blocks2.2.mixer.proj.weight [256, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mixer.proj.bias [128] not matched with loaded params backbone.blocks2.2.mixer.proj.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.norm2.weight [128] not matched with loaded params backbone.blocks2.2.norm2.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.norm2.bias [128] not matched with loaded params backbone.blocks2.2.norm2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mlp.fc1.weight [128, 512] not matched with loaded params backbone.blocks2.2.mlp.fc1.weight [256, 1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mlp.fc1.bias [512] not matched with loaded params backbone.blocks2.2.mlp.fc1.bias [1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mlp.fc2.weight [512, 128] not matched with loaded params backbone.blocks2.2.mlp.fc2.weight [1024, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.2.mlp.fc2.bias [128] not matched with loaded params backbone.blocks2.2.mlp.fc2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.norm1.weight [128] not matched with loaded params backbone.blocks2.3.norm1.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.norm1.bias [128] not matched with loaded params backbone.blocks2.3.norm1.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mixer.qkv.weight [128, 384] not matched with loaded params backbone.blocks2.3.mixer.qkv.weight [256, 768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mixer.qkv.bias [384] not matched with loaded params backbone.blocks2.3.mixer.qkv.bias [768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mixer.proj.weight [128, 128] not matched with loaded params backbone.blocks2.3.mixer.proj.weight [256, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mixer.proj.bias [128] not matched with loaded params backbone.blocks2.3.mixer.proj.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.norm2.weight [128] not matched with loaded params backbone.blocks2.3.norm2.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.norm2.bias [128] not matched with loaded params backbone.blocks2.3.norm2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mlp.fc1.weight [128, 512] not matched with loaded params backbone.blocks2.3.mlp.fc1.weight [256, 1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mlp.fc1.bias [512] not matched with loaded params backbone.blocks2.3.mlp.fc1.bias [1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mlp.fc2.weight [512, 128] not matched with loaded params backbone.blocks2.3.mlp.fc2.weight [1024, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.3.mlp.fc2.bias [128] not matched with loaded params backbone.blocks2.3.mlp.fc2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.norm1.weight [128] not matched with loaded params backbone.blocks2.4.norm1.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.norm1.bias [128] not matched with loaded params backbone.blocks2.4.norm1.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mixer.qkv.weight [128, 384] not matched with loaded params backbone.blocks2.4.mixer.qkv.weight [256, 768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mixer.qkv.bias [384] not matched with loaded params backbone.blocks2.4.mixer.qkv.bias [768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mixer.proj.weight [128, 128] not matched with loaded params backbone.blocks2.4.mixer.proj.weight [256, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mixer.proj.bias [128] not matched with loaded params backbone.blocks2.4.mixer.proj.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.norm2.weight [128] not matched with loaded params backbone.blocks2.4.norm2.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.norm2.bias [128] not matched with loaded params backbone.blocks2.4.norm2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mlp.fc1.weight [128, 512] not matched with loaded params backbone.blocks2.4.mlp.fc1.weight [256, 1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mlp.fc1.bias [512] not matched with loaded params backbone.blocks2.4.mlp.fc1.bias [1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mlp.fc2.weight [512, 128] not matched with loaded params backbone.blocks2.4.mlp.fc2.weight [1024, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.4.mlp.fc2.bias [128] not matched with loaded params backbone.blocks2.4.mlp.fc2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.norm1.weight [128] not matched with loaded params backbone.blocks2.5.norm1.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.norm1.bias [128] not matched with loaded params backbone.blocks2.5.norm1.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mixer.qkv.weight [128, 384] not matched with loaded params backbone.blocks2.5.mixer.qkv.weight [256, 768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mixer.qkv.bias [384] not matched with loaded params backbone.blocks2.5.mixer.qkv.bias [768] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mixer.proj.weight [128, 128] not matched with loaded params backbone.blocks2.5.mixer.proj.weight [256, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mixer.proj.bias [128] not matched with loaded params backbone.blocks2.5.mixer.proj.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.norm2.weight [128] not matched with loaded params backbone.blocks2.5.norm2.weight [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.norm2.bias [128] not matched with loaded params backbone.blocks2.5.norm2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mlp.fc1.weight [128, 512] not matched with loaded params backbone.blocks2.5.mlp.fc1.weight [256, 1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mlp.fc1.bias [512] not matched with loaded params backbone.blocks2.5.mlp.fc1.bias [1024] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mlp.fc2.weight [512, 128] not matched with loaded params backbone.blocks2.5.mlp.fc2.weight [1024, 256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks2.5.mlp.fc2.bias [128] not matched with loaded params backbone.blocks2.5.mlp.fc2.bias [256] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample2.conv.weight [256, 128, 3, 3] not matched with loaded params backbone.sub_sample2.conv.weight [384, 256, 3, 3] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample2.conv.bias [256] not matched with loaded params backbone.sub_sample2.conv.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample2.norm.weight [256] not matched with loaded params backbone.sub_sample2.norm.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.sub_sample2.norm.bias [256] not matched with loaded params backbone.sub_sample2.norm.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.norm1.weight [256] not matched with loaded params backbone.blocks3.0.norm1.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.norm1.bias [256] not matched with loaded params backbone.blocks3.0.norm1.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mixer.qkv.weight [256, 768] not matched with loaded params backbone.blocks3.0.mixer.qkv.weight [384, 1152] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mixer.qkv.bias [768] not matched with loaded params backbone.blocks3.0.mixer.qkv.bias [1152] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mixer.proj.weight [256, 256] not matched with loaded params backbone.blocks3.0.mixer.proj.weight [384, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mixer.proj.bias [256] not matched with loaded params backbone.blocks3.0.mixer.proj.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.norm2.weight [256] not matched with loaded params backbone.blocks3.0.norm2.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.norm2.bias [256] not matched with loaded params backbone.blocks3.0.norm2.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mlp.fc1.weight [256, 1024] not matched with loaded params backbone.blocks3.0.mlp.fc1.weight [384, 1536] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mlp.fc1.bias [1024] not matched with loaded params backbone.blocks3.0.mlp.fc1.bias [1536] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mlp.fc2.weight [1024, 256] not matched with loaded params backbone.blocks3.0.mlp.fc2.weight [1536, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.0.mlp.fc2.bias [256] not matched with loaded params backbone.blocks3.0.mlp.fc2.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.norm1.weight [256] not matched with loaded params backbone.blocks3.1.norm1.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.norm1.bias [256] not matched with loaded params backbone.blocks3.1.norm1.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mixer.qkv.weight [256, 768] not matched with loaded params backbone.blocks3.1.mixer.qkv.weight [384, 1152] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mixer.qkv.bias [768] not matched with loaded params backbone.blocks3.1.mixer.qkv.bias [1152] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mixer.proj.weight [256, 256] not matched with loaded params backbone.blocks3.1.mixer.proj.weight [384, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mixer.proj.bias [256] not matched with loaded params backbone.blocks3.1.mixer.proj.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.norm2.weight [256] not matched with loaded params backbone.blocks3.1.norm2.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.norm2.bias [256] not matched with loaded params backbone.blocks3.1.norm2.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mlp.fc1.weight [256, 1024] not matched with loaded params backbone.blocks3.1.mlp.fc1.weight [384, 1536] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mlp.fc1.bias [1024] not matched with loaded params backbone.blocks3.1.mlp.fc1.bias [1536] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mlp.fc2.weight [1024, 256] not matched with loaded params backbone.blocks3.1.mlp.fc2.weight [1536, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.1.mlp.fc2.bias [256] not matched with loaded params backbone.blocks3.1.mlp.fc2.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.norm1.weight [256] not matched with loaded params backbone.blocks3.2.norm1.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.norm1.bias [256] not matched with loaded params backbone.blocks3.2.norm1.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mixer.qkv.weight [256, 768] not matched with loaded params backbone.blocks3.2.mixer.qkv.weight [384, 1152] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mixer.qkv.bias [768] not matched with loaded params backbone.blocks3.2.mixer.qkv.bias [1152] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mixer.proj.weight [256, 256] not matched with loaded params backbone.blocks3.2.mixer.proj.weight [384, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mixer.proj.bias [256] not matched with loaded params backbone.blocks3.2.mixer.proj.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.norm2.weight [256] not matched with loaded params backbone.blocks3.2.norm2.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.norm2.bias [256] not matched with loaded params backbone.blocks3.2.norm2.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mlp.fc1.weight [256, 1024] not matched with loaded params backbone.blocks3.2.mlp.fc1.weight [384, 1536] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mlp.fc1.bias [1024] not matched with loaded params backbone.blocks3.2.mlp.fc1.bias [1536] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mlp.fc2.weight [1024, 256] not matched with loaded params backbone.blocks3.2.mlp.fc2.weight [1536, 384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.blocks3.2.mlp.fc2.bias [256] not matched with loaded params backbone.blocks3.2.mlp.fc2.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.norm1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.norm1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mixer.qkv.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mixer.qkv.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mixer.proj.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mixer.proj.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.norm2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.norm2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mlp.fc1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mlp.fc1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mlp.fc2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.3.mlp.fc2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.norm1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.norm1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mixer.qkv.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mixer.qkv.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mixer.proj.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mixer.proj.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.norm2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.norm2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mlp.fc1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mlp.fc1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mlp.fc2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.4.mlp.fc2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.norm1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.norm1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mixer.qkv.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mixer.qkv.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mixer.proj.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mixer.proj.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.norm2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.norm2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mlp.fc1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mlp.fc1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mlp.fc2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.5.mlp.fc2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.norm1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.norm1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mixer.qkv.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mixer.qkv.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mixer.proj.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mixer.proj.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.norm2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.norm2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mlp.fc1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mlp.fc1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mlp.fc2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.6.mlp.fc2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.norm1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.norm1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mixer.qkv.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mixer.qkv.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mixer.proj.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mixer.proj.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.norm2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.norm2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mlp.fc1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mlp.fc1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mlp.fc2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.7.mlp.fc2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.norm1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.norm1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mixer.qkv.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mixer.qkv.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mixer.proj.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mixer.proj.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.norm2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.norm2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mlp.fc1.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mlp.fc1.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mlp.fc2.weight not in model [2025/03/07 05:56:35] ppocr WARNING: The pretrained params backbone.blocks3.8.mlp.fc2.bias not in model [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.last_conv.weight [192, 256, 1, 1] not matched with loaded params backbone.last_conv.weight [256, 384, 1, 1] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.norm.weight [256] not matched with loaded params backbone.norm.weight [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params backbone.norm.bias [256] not matched with loaded params backbone.norm.bias [384] ! [2025/03/07 05:56:35] ppocr WARNING: The shape of model params head.fc.weight [192, 37] not matched with loaded params head.fc.weight [256, 37] ! [2025/03/07 05:56:35] ppocr INFO: load pretrain successful from ./pretrain_models/svtr_base_1/rec_svtr_base_none_ctc_en_train/best_accuracy [2025/03/07 05:56:35] ppocr INFO: Export inference config file to ./inference/rec_svtr_base_1/inference.yml Skipping import of the encryption module I0307 05:56:36.971787 15016 program_interpreter.cc:243] New Executor is Running. [2025/03/07 05:56:36] ppocr INFO: inference model is saved to ./inference/rec_svtr_base_1/inference
Beta Was this translation helpful? Give feedback.
All reactions