[Feature Request] Allow specifying custom default directory for downloaded models / document default model download path #16631
cqhung1412
started this conversation in
Ideas & Features
Replies: 1 comment
-
|
Hello, you can upgrade PaddleOCR to version 3.0 or above. In PaddleOCR 3.0, you can specify the overall download directory for the model using the following command: import os
os.environ["PADDLE_PDX_CACHE_HOME"] = r"XXX"This command needs to be written before |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The existing issue #10234 asks “Where will the downloaded model be saved?” but ends without a clear resolution or documented behavior. The lack of documentation or config to override default download location is a pain point for users with limited home disk space or custom deployment scenarios.
I propose we add:
a documented default path (for all model types: detection, recognition, classification, layout, etc.)
a configuration option (argument, env var, or config file) to override that default, so users can redirect model downloads to a custom directory.
Background / Context
So configuring a stable, overrideable download path is a real need.
Proposal
In YAML config file or directly in pipeline init function, add a new attribute for general_model_dir (or another name)
If this field is not None and other _dir fields are None, then download the models to this folder, with model dir creation of course.
Request
Beta Was this translation helpful? Give feedback.
All reactions