githubharald / SimpleHTR

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

Calculation of numTrainSamplesPerEpoch & batchSize Value #47

Closed contactvpatel closed 5 years ago

contactvpatel commented 5 years ago

We have numTrainSamplesPerEpoch as 25000 set in DataLoader.py and batchSize as 50 in Model.py. In my case, My input image count varies when I am training my model every time, so what's formula / best way to calculate numTrainSamplesPerEpoch & batchSize based on input image count to get best possible accuracy.

githubharald commented 5 years ago

Try different values ("hyperparameter search") and see how the results change. There is no formula to get these parameters.