question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in easyocr.Reader with urlretrieve(model_url[model_file][0], MODEL_PATH)

See original GitHub issue

Hello! Thanks for that amazing library first of all! Could someone please help to resolve the issue i encountered today only (yesterday and before it was working smoothly).

in my code i have let’s say:

import easyocr
reader = easyocr.Reader(['id', 'en'])

When i run it - i am getting the following error:

CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
MD5 hash mismatch, possible file corruption
Re-downloading the recognition model, please wait
Traceback (most recent call last):
  File "tryout_easyocr.py", line 5, in <module>
    reader = easyocr.Reader(['id', 'en'])
  File "/usr/local/lib/python3.7/site-packages/easyocr/easyocr.py", line 194, in __init__
    urlretrieve(model_url[model_file][0], MODEL_PATH)
  File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 288, in urlretrieve
    % (read, size), result)

Regardless what language i choose - i face this error in all the environments:

Diving deeper it tries to download the following file: https://www.jaided.ai/read_download/latin.pth which i wasn’t able to download with wget, curl or browser as well for the same issue.

Seems https://www.jaided.ai/ resets the connection during download

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
rkcosmoscommented, Jul 29, 2020

I plan to move download part behind Cloudflare and let them handle the traffic.

1reaction
imvladikoncommented, Aug 1, 2020

@Vijayabhaskar96 @rkcosmos I think there is a way to do it like in the spacy package and model for spacy. They just provide models through assets on the GitHub and module for downloading it e.g. https://github.com/explosion/spaCy/releases/tag/v2.3.0 and another option is just google drive (retrieving using https://pypi.org/project/gdown/)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model files won't download · Issue #194 · JaidedAI/EasyOCR
Looks like there's an issue with the server for the model files. Returns a 403 forbidden when attempting to download. reader = easyocr.Reader(['en'],...
Read more >
Attribute Error while Importing EasyOCR module
I started working on a new opencv project which is Automatic Number Plate Recognition (ANPR) using OpenCV and EasyOCR.
Read more >
easyocr - PyPI
End-to-End Multi-Lingual Optical Character Recognition (OCR) Solution.
Read more >
easyocr.Reader raises error - githubmemory
easyocr.Reader raises error #498. import easyocr reader = easyocr.Reader(['ch_sim','en'] , gpu= True) Downloading detection model, please wait.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found