Closed codeaway23 closed 4 years ago
Solved. My dataset metadata was 1 6
for 1 word with 6 characters but i had to change it to 6 1
and the training started.
I am facing another issue though. My validation accuracy doesn't move from 0%. even after 1000 of epochs. the training loss reduces and the training accuracy slowly reaches to 98% but there's absolutely no change in validation accuracy.
in fact my validation loss values increase with epochs. i have tried working with different batch sizes, cross checked my training files. I am using a learning rate of 0.0001. i am training on 1000 images and validating on 390.
any idea why this might be happening? and how I can fix this? Any help is appreciated.
Hmm, you created your own char_map
? Could you show me an excerpt?
The code produces some debugging output during training. If you look into the log folder, there is a sub-directory named bboxes
. Here the code saves the predictions of the model on one image every 10 iterations. You can have a look at these images and see what happened over time. If the predicted bounding boxes are not visible anymore after some time, your learning rate might be too high. If you want to see how it might look like, you can download a video of this here (it is the video Text Recognition.mp4
.)
Another thing that might be aproblem, is that you are only training on 1000 images. That is by far not enough. The only thing you could try is to fine-tune from one of our models.
Thanks for the very constructive input. I looked through the video and found I should look at how I pre-process images better.
The bounding boxes are around the entire word and stop changing much after a point.
I was experimenting with a few different approaches. Was facing this issue of stagnant validation accuracies with attention ocr as well but was able to fix it with resizing and transferring inception weights.
I'm guessing the tranfer of your text recognition weights should help.
Again, thanks for the great repository.
Hi,
Thanks for the awesome repository.
I am trying to train on a custom dataset. I have a charmap, my specification json and my dataset csv files ready. i run the following command -
and get the following error -
How do I fix this?