PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
Apache License 2.0
39.34k stars 7.35k forks source link

How to disable .paddleocr directory creation? #12123

Open Ocean-Moist opened 2 weeks ago

Ocean-Moist commented 2 weeks ago

请提出你的问题 Please ask your question

In PaddlePaddle/Paddle#48873 they say to disable .paddleocr file creation to get paddleocr to work in the docker container, but I can not find anything in the docs about how to do this. I can also do ENV HOME=/tmp but I do not want to spend time downloading files unnecessarily.

UserWangZz commented 2 weeks ago

When you do not specify the default detection and recognition model address, paddleocr will download the official model by default. You can delete it manually, or it will not be downloaded the second time after downloading.

Ocean-Moist commented 1 week ago

To avoid re-downloading these files each time a new container is created, is it possible to pre-download the files and store them in a local directory? This way, when a new container is started, it can copy the files from the local directory instead of downloading them again.

saikumar305 commented 3 days ago

Anyone has found solution for this?