Fetches best_area_w_0.7.pt from HuggingFace and caches it on disk. On
subsequent calls the cached file is returned immediately without re-downloading.
Usage
grayleafspot_download_model(force = FALSE, quiet = FALSE)
Arguments
- force
Logical. Re-download even if a cached copy already exists.
- quiet
Logical. Suppress progress messages.
Value
Invisible character string: absolute path to the downloaded model file.
Details
The function looks for the model in this order:
models/best_area_w_0.7.pt relative to the package root (development).
The per-user R cache directory (tools::R_user_dir("grayleafspotr", "cache")).
Downloads from HuggingFace and saves to the user cache directory.