LPRNet_Pytorch icon indicating copy to clipboard operation
LPRNet_Pytorch copied to clipboard

Accuracy 0.0, when i training custom dataset.

Open Lightmourne opened this issue 3 years ago • 4 comments
trafficstars

Hi, when i training model with custom data set, the accuracy is always 0. I modified the list of CHARS and license plate length, what could be the problem?

image

Lightmourne avatar Aug 23 '22 22:08 Lightmourne

I think your learning rate is too big, set it to 0.001 when start training.

LadiesMan924 avatar Aug 24 '22 09:08 LadiesMan924

I think your learning rate is too big, set it to 0.001 when start training.

Thank you, that really worked. Now best accuracy = 0.58 I think this is because my dataset contains a lot of "dirty" images.

Lightmourne avatar Aug 25 '22 19:08 Lightmourne

I've tried many times even if the learning rate is set very small, the best accuracy would not be higher than 0.6. Maybe we should use more images for training.

LadiesMan924 avatar Aug 31 '22 03:08 LadiesMan924

Set the training epochs parameter to a larger value (for example, 100), increase the test frequency (decrease the --test_interval parameter), and carefully observe the accuracy of each test to see if there are non-zero values. In my training, using my own data set (80,000 for training set and 20,000 for test set), after 15 iterations of the network, the accuracy has reached more than 0.94 (the learning rate is 0.00001 at this time), and then continue training (set The epochs value is greater than 15), the train_*.py program will automatically adjust the learning rate back to 0.1, the loss will become larger again, and the accuracy will be reduced to 0.

feitianhouren avatar Sep 13 '22 08:09 feitianhouren