Closed mariembenslama closed 5 years ago
Can you share your train loss.
The 1st global lose was 13.214795, then each time it takes only one example like shown in the screenshot, one pred character and tells that the gt is totally different and show a 0.000 accuracy.
The CTC I'm using is from this link: https://github.com/SeanNaren/warp-ctc.git
The loss even reachs these values but still prints the wrong prediction.
Networks overfit your training data. You should get more data.
I used the data generator and I have 1000 for training and 400 for test (for starter), do you think it's not enough? How much should I add?
Alright I added about 10000 samples for training and 5000 for test and here are the results (same results)
I'm just wondering why is it reading only one character in the pred text
I firstly trained on 3.6m synthetic chinese character data, and then just used synthetic data generated by data_generator for finetune. Therefore, I can't assure that simple data generated by data_generator has robust ability to train a new model. Maybe you should get another data within complexity and diversity.
Thanks and sorry for the trouble, however, I wrote a small program that reads from the lmdb file in order to see how the images and texts (matches) are being written inside the database and I got the following results:
b\image000001, 0 b\image000002, 0 ........ The image is well stored but the text matching is having 0 as value. I guess that it reads emtpy values which explains the results I got before
Start val U => U , gt: MNOPQRSTUV 0 100 .....
Do you think that would be the problem? I guess that the data_generator you wrote is really good and it's a shame to throw it away.
When I read and print from the lmdb file (dataset.py) I get the following results: --> it prints english but not the japanese/chinese text I guess the whole problem is because of the lmdb file.
Start val U => U , gt: MNOPQRSTUV
And all test accuracies are 0.
Hi, I got the same result, Have you solved it?
Hello, yes: Check Holmeyoung Crnn pytorch project, he solved it there :)
Hello, yes: Check Holmeyoung Crnn pytorch project, he solved it there :)
Thank you for your answer, and it works.
Start val U => U , gt: MNOPQRSTUV
And all test accuracies are 0.