Downloads one or more pre-trained neural models into the user's model directory.
Supports downloading by model name, model asset name, dynamic GitHub release asset,
or directly from a custom URL (e.g. https://.../model.onnx).
Usage
pliman_download_model(
model = "u2netp",
dir = pliman_model_dir(),
force = FALSE,
refresh = FALSE,
verbose = TRUE
)Arguments
- model
Character vector naming the model(s) or direct URL(s) to download. Can be a known model name (e.g.
"yolo26n","rmbg-2.0"), an asset filename (e.g."yolo26x-cls.onnx","yolo26s-obb.pt"),"all", or a direct HTTP/HTTPS URL.- dir
Directory to save the model files (default:
pliman_model_dir()).- force
Logical. If
TRUE, forces re-download even if the file exists (defaultFALSE).- refresh
Logical. If
TRUE, forces re-fetching the GitHub release asset catalog (defaultFALSE).- verbose
Logical. If
TRUE, returns the progress of instalation.
License notice
The pre-trained models are not distributed with pliman: they are downloaded
from third-party sources and each one keeps its own license. Several models forbid
commercial use (e.g. "rmbg-1.4", "rmbg-2.0", "yolo_nas_s" and "yolo_nas_l") and
others are released under the AGPL-3.0 (the "yolo26*" and "yolov8*-worldv2" families).
The models available through pliman are therefore provided for research and
non-commercial use only. The license of each model is listed in
system.file("MODEL_LICENSES.md", package = "pliman").
