awslabs / handwritten-text-recognition-for-apache-mxnet

This repository lets you train neural networks models for performing end-to-end full-page handwriting recognition using the Apache MXNet deep learning frameworks on the IAM Dataset.
Apache License 2.0
481 stars 189 forks source link

EOFError: Ran out of input #24

Closed AnimeshMaheshwari22 closed 4 years ago

AnimeshMaheshwari22 commented 4 years ago

Getting an error in iam_dataset.py file in this line: df = pickle.load(open(fn, 'rb'))

jonomon commented 4 years ago

What is the error message?

AnimeshMaheshwari22 commented 4 years ago

df = pickle.load(open(fn, 'rb')) EOFError: Ran out of input

This is the error message sir

jonomon commented 4 years ago

I believe this happens when the jupyter notebook does not download the IAM dataset correctly. To mitigate this, delete everything in dataset/iam-database then run the following in your terminal.

from ocr.utils.iam_dataset import IAMDataset
test = IAMDataset("form_original", train=False)

After this has completed, you should be able to run the rest of the notebook.

vyavaharesagar commented 4 years ago

Thank u... It works