githubharald / SimpleHTR

Handwritten Text Recognition (HTR) system implemented with TensorFlow.
https://towardsdatascience.com/2326a3487cd5
MIT License
1.99k stars 894 forks source link

Loss does not decrease #92

Closed hamzarawal closed 3 years ago

hamzarawal commented 3 years ago

Hi, thanks for the awesome work. I am training the model on IAM dataset with everything kept default. But the loss keeps fluctuating between 13 to 15... any idea what can be the reason?

githubharald commented 3 years ago

Hi, before digging deeper - can you check if the images are loaded? We reach this if-block if the image could not be loaded. Can you add a print('IMG NOT LOADED') and run the training again and see if you see the error message printed? https://github.com/githubharald/SimpleHTR/blob/master/src/SamplePreprocessor.py#L12

hamzarawal commented 3 years ago

Hi, thanks for the prompt response. My bad, the images were not loading. The loading directory was not correct.