用自己数据集训练的识别模型的train_model转换为inference_model后识别结果错误 #14088
Replies: 4 comments 2 replies
-
我也遇到同样的问题请问你的解决了吗 |
Beta Was this translation helpful? Give feedback.
0 replies
-
解决了,我那个错误是因为用英文字典训练的,推理的时候没有指定字典,所以按照默认的中英文字典进行推理,识别的结果就不对。
在推理的时候指定正确的字典路径就可以了,应该有一个参数是指定字典路径的
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年12月19日(周四) 中午11:26
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [PaddlePaddle/PaddleOCR] 用自己数据集训练的识别模型的train_model转换为inference_model后识别结果错误 (Discussion #14088)
我也遇到同样的问题请问你的解决了吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GreatV
-
训练时,验证集指标是多少呀
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 发送日期 | 2024年12月21日 19:00 |
| 收件人 | PaddlePaddle/PaddleOCR ***@***.***> |
| 抄送人 | SWHL ***@***.***>,
State ***@***.***> |
| 主题 | Re: [PaddlePaddle/PaddleOCR] 用自己数据集训练的识别模型的train_model转换为inference_model后识别结果错误 (Discussion #14088) |
你好我也是使用预训练模型进行训练的,但是训练后转推理模型,预测简单的电脑文字截图准确率几乎为0,虽然训练使用的图集并不多,但是预训练模型是官方预训练过的,有一定的准确率才对。你知道这种是啥原因吗。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
我当时自己训练的指标还是挺高的,训练都没有问题,你的训练集是多大的呢,有没有试过直接用官方的预训练模型测试一下看看效果,可以加一下我的QQ交流2206120168
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年12月21日(周六) 晚上8:01
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [PaddlePaddle/PaddleOCR] 用自己数据集训练的识别模型的train_model转换为inference_model后识别结果错误 (Discussion #14088)
训练时,验证集指标是多少呀
---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 发送日期 | 2024年12月21日 19:00 |
| 收件人 | PaddlePaddle/PaddleOCR ***@***.***> |
| 抄送人 | SWHL ***@***.***>,
State ***@***.***> |
| 主题 | Re: [PaddlePaddle/PaddleOCR] 用自己数据集训练的识别模型的train_model转换为inference_model后识别结果错误 (Discussion #14088) |
你好我也是使用预训练模型进行训练的,但是训练后转推理模型,预测简单的电脑文字截图准确率几乎为0,虽然训练使用的图集并不多,但是预训练模型是官方预训练过的,有一定的准确率才对。你知道这种是啥原因吗。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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.
-
我用自己的数据集训练了识别模型,用训练模型测试时检测结果全对,但是经过export_model.py转换为推理模型后识别结果就几乎都不对了,结果如下:



这是原图
这是训练模型识别结果
这是推理模型识别结果
我的export_model.py的形参是-c "../configs/rec/en_new_finetune_rec.yml" -o Global.pretrained_model=../output/en_finetune_rec/best_accuracy.pdparams Global.save_inference_dir="../rec/inference_model/rec/"
离谱的是之前训练和转换的结果都是对的,代码也都没改,前两天重新训练后就变成了这样,求教一下各位大佬这可能是因为啥造成的啊
Beta Was this translation helpful? Give feedback.
All reactions