sirius-ai / LPRNet_Pytorch

Pytorch Implementation For LPRNet, A High Performance And Lightweight License Plate Recognition Framework.
Apache License 2.0
934 stars 232 forks source link

> 用预训练的模型测试所给的测试集,怎么只有0.9的正确率,再训练了自己的数据集之后就只有0.74了。。。 #50

Open hanrui15765510320 opened 3 years ago

hanrui15765510320 commented 3 years ago

用预训练的模型测试所给的测试集,怎么只有0.9的正确率,再训练了自己的数据集之后就只有0.74了。。。

请教一下大神,你是什么训练出0.74的准确率的?能教我一下你修改了哪儿吗?为啥我训练出来的都是0呢。 这是我训练的过程: Successful to build network! initial net weight successful! [Info] Test Accuracy: 0.0 [0:861:99:960] [Info] Test Speed: 0.015824174165725707s 1/1000] [Info] Test Accuracy: 0.0 [0:866:94:960] [Info] Test Speed: 0.016215238094329835s 1/1000] [Info] Test Accuracy: 0.0 [0:857:103:960] [Info] Test Speed: 0.015121325016021729s 1/1000] [Info] Test Accuracy: 0.0 [0:840:120:960] [Info] Test Speed: 0.015990777015686033s 1/1000] [Info] Test Accuracy: 0.0 [0:860:100:960] [Info] Test Speed: 0.016122838973999024s 1/1000] [Info] Test Accuracy: 0.0 [0:850:110:960] [Info] Test Speed: 0.01493265199661255s 1/1000] [Info] Test Accuracy: 0.0 [0:873:87:960] [Info] Test Speed: 0.01611969208717346s 1/1000]

_Originally posted by @rawli in https://github.com/sirius-ai/LPRNet_Pytorch/issues/44#issuecomment-785546276_

hanrui15765510320 commented 3 years ago

我的也是0.0的准确率,大神你解决了这个问题了吗

luotianhang commented 3 years ago

你看你datalist 有没有变过 主要是看里面的数据增强 然后就是你确保模型是否成功load 在torch。load中的strict参数置为true

wang-TJ-20 commented 2 years ago

您好,请问你解决训练后是0.0准确率的这个问题了吗,我是用的test里面的数据进行的训练 @hanrui15765510320

dcdethan commented 2 years ago

我的也是0.0的准确率,大神你解决了这个问题了吗

改学习率为0.01