terra.download_pretrained#
- terra.download_pretrained(repo_id, *, revision=None, cache_dir=None, local_dir=None, token=None)#
Download a published TERRA model bundle.
revisionpins a git tag/branch/commit (e.g. the manuscriptv1.0); omit it for the latestmain. By default the bundle is stored in the Hugging Face cache. Passlocal_dirto download the files directly into that folder (created if needed, and returned as-is); passcache_dirto use a custom Hugging Face cache root instead.- Returns:
path (
str) – Local folder path to the downloaded bundle, to pass asmodel_folder_pathto the inference pipeline.