训练后的模型大小问题 #15461
Unanswered
yanwenjie1
asked this question in
Q&A
训练后的模型大小问题
#15461
Replies: 1 comment 1 reply
-
您好,关于您的问题可以参考这个discussions。 #15355 (comment) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
我按照官网的步骤和样例训练集训练
数据集是wget https://paddle-model-ecology.bj.bcebos.com/paddlex/data/ocr_rec_dataset_examples.tar
tar -xf ocr_rec_dataset_examples.tar
训练用的是mobile模型,下载训练模型PP-OCRv5_mobile_rec_pretrained.pdparams后,有130M大
训练命令
python3 tools/train.py -c configs/rec/PP-OCRv5/PP-OCRv5_server_rec.yml
-o Global.pretrained_model=./PP-OCRv5_server_rec_pretrained.pdparams
只把PP-OCRv5_server_rec.yml中的数据集地址改了下,训练结束后,保存的 model.pdparams 127MB
用tools/export_model.py导出后,大小是inference.pdiparams 135MB,
这个大小正常吗,mobile模型不是只有十几MB吗
Beta Was this translation helpful? Give feedback.
All reactions