You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PermissionError: [Errno 13] Permission denied: '/home/user/.cache/doctr'
Traceback:
File "/home/user/.local/lib/python3.8/site-packages/streamlit/script_runner.py", line 350, in _run_script
exec(code, module.__dict__)
File "/home/user/app/app.py", line 113, in <module>
main()
File "/home/user/app/app.py", line 80, in main
predictor = ocr_predictor(det_arch, reco_arch, pretrained=True)
File "/home/user/app/src/python-doctr/doctr/models/zoo.py", line 87, in ocr_predictor
return _predictor(
File "/home/user/app/src/python-doctr/doctr/models/zoo.py", line 28, in _predictor
det_predictor = detection_predictor(
File "/home/user/app/src/python-doctr/doctr/models/detection/zoo.py", line 87, in detection_predictor
return _predictor(arch, pretrained, assume_straight_pages, **kwargs)
File "/home/user/app/src/python-doctr/doctr/models/detection/zoo.py", line 46, in _predictor
_model = detection.__dict__[arch](pretrained=pretrained, assume_straight_pages=assume_straight_pages)
File "/home/user/app/src/python-doctr/doctr/models/detection/differentiable_binarization/tensorflow.py", line 337, in db_resnet50
return _db_resnet(
File "/home/user/app/src/python-doctr/doctr/models/detection/differentiable_binarization/tensorflow.py", line 280, in _db_resnet
load_pretrained_params(model, _cfg['url'])
File "/home/user/app/src/python-doctr/doctr/models/utils/tensorflow.py", line 48, in load_pretrained_params
archive_path = download_from_url(url, hash_prefix=hash_prefix, cache_subdir='models', **kwargs)
File "/home/user/app/src/python-doctr/doctr/utils/data.py", line 88, in download_from_url
folder_path.mkdir(parents=True, exist_ok=True)
File "/usr/local/lib/python3.8/pathlib.py", line 1291, in mkdir
self.parent.mkdir(parents=True, exist_ok=True)
File "/usr/local/lib/python3.8/pathlib.py", line 1287, in mkdir
self._accessor.mkdir(self, mode)
Environment
Firefox MacOS
Deep Learning backend
N/A
The text was updated successfully, but these errors were encountered:
Thanks for pointing it out!
I managed to reproduce this a minute ago on HF Spaces, but locally, I don't have any problem. I'll investigate with HF team to solve this shortly 👍
Bug description
Great work with the library!
I went onto your demo page on Huggingface but cannot run the demo on any document.
Code snippet to reproduce the bug
Upload a document here https://huggingface.co/spaces/mindee/doctr
Error traceback
Environment
Firefox MacOS
Deep Learning backend
N/A
The text was updated successfully, but these errors were encountered: