githubharald / SimpleHTR

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

Training model on IAM Dataset #4

Closed juzer-lamo53 closed 6 years ago

juzer-lamo53 commented 6 years ago

Hi,

According to your guide for training model on IAM Dataset, when I run "python main.py --train". I receive the following error: Traceback (most recent call last): File "main.py", line 97, in infer(fnInfer) File "main.py", line 86, in infer model = Model(open(fnCharList).read(), mustRestore=True) File "E:\Users\Juzer\Dropbox\Master Thesis - Automatic Handling of Sheets\Implementation\SimpleHTR-master\SimpleHTR-master\src\Model.py", line 33, in init (self.sess, self.saver) = self.setupTF() File "E:\Users\Juzer\Dropbox\Master Thesis - Automatic Handling of Sheets\Implementation\SimpleHTR-master\SimpleHTR-master\src\Model.py", line 106, in setupTF raise Exception('No saved model found in: ' + modelDir) Exception: No saved model found in: ../model/

Can you help me?

Thanks in advance.

githubharald commented 6 years ago

for training the model, you have to download the IAM dataset. Did you download it (more information see README)?

juzer-lamo53 commented 6 years ago

Yes, I did download the IAM Dataset for words and included it according to the instructions but I receive the mentioned error.

juzer-lamo53 commented 6 years ago

Hi, can you help me about what can be the issue?

githubharald commented 6 years ago

I'll come back to you until the end of this week.

githubharald commented 6 years ago

you have an old version of the repositor but used the recent version of the README. The command line arguments changed since then. The solution should be pretty simple: just get the newest version of this repository and you're done ;-)