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.

Model file not found

See original GitHub issue

Trying to run the example and I get this error:

>>> import easyocr
>>> reader = easyocr.Reader(['en'])
CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
Downloading detection model, please wait
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/myuser/.local/lib/python3.8/site-packages/easyocr/easyocr.py", line 168, in __init__
    urllib.request.urlretrieve(model_url['detector'][0] , DETECTOR_PATH)
  File "/usr/lib/python3.8/urllib/request.py", line 257, in urlretrieve
    tfp = open(filename, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: '/home/myuser/.EasyOCR/model/craft_mlt_25k.pth'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jibakucommented, Jul 8, 2020

I created the directory and the line worked: mkdir -p /home/myuser/.EasyOCR/model

1reaction
rkcosmoscommented, Jul 8, 2020

I was in project directory before I accept this PR #45 . It is the standard practice to store additional file in home directory because if program is installed system-wide. User without root-privilege can still download and save new model.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Model File Not Found · Issue #990 · facebookresearch/fairseq
When I try to load the english to german and german to english pretrained models as follows en2de = torch.hub.load('pytorch/fairseq', ...
Read more >
Loading Tensorflow model file not found - Stack Overflow
I am calling load_model() from a different script, but the files are stored before I call it and the files are present in...
Read more >
[SOLVED] ValueError: [!] Model file not found in the output path
tts --text "Text for TTS" --out_path ./speech.wavtts_models/en/ljspeech/tacotron2-DDC is already ...
Read more >
Model file is not found for Registration of model in training ...
we created the model in the process and write it out to a pipeline data set.To persist it then we upload and read...
Read more >
[Beginner] Error: Can't find model file when running Stan ...
Hi, I just downloaded R 4.0.2 and rstan 2.21.2. I followed along with the Getting Started guide. I ran the following code in...
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