Model file not found
See original GitHub issueTrying 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I created the directory and the line worked:
mkdir -p /home/myuser/.EasyOCR/model
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.