asteroid.utils.hub_utils module¶
-
asteroid.utils.hub_utils.
cached_download
(filename_or_url)[source]¶ Download from URL and cache the result in ASTEROID_CACHE.
Parameters: filename_or_url (str) – Name of a model as named on the Zenodo Community page (ex: "mpariente/ConvTasNet_WHAM!_sepclean"
), or model id from the Hugging Face model hub (ex:"julien-c/DPRNNTasNet-ks16_WHAM_sepclean"
), or a URL to a model file (ex:"https://zenodo.org/.../model.pth"
), or a filename that exists locally (ex:"local/tmp_model.pth"
)Returns: str, normalized path to the downloaded (or not) model