Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOF read where object expected #17

Open
vidithirve opened this issue Jun 28, 2023 · 0 comments
Open

EOF read where object expected #17

vidithirve opened this issue Jun 28, 2023 · 0 comments

Comments

@vidithirve
Copy link

I tried running predict_line.py on command prompt

python predict_line.py --path C:/Handwritten_OCR/HTRPipeline-master/HTRPipeline-master/data1/eng_AF_004.jpg

but I am getting this error

EOF read where object expected
Unable to Load Checkpoint.
Traceback (most recent call last):
  File "C:\Handwritten_OCR\Easter2-main\Easter2-main\src\predict_line.py", line 72, in <module>
    print(infer_obj.predict(args.path)) ## change the image path with the file path you want
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Handwritten_OCR\Easter2-main\Easter2-main\src\predict_line.py", line 57, in predict
    output = self.model.predict(img)
             ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'predict'

I would appreciate if anyone can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant