asteroid.utils.hub_utils module¶
-
asteroid.utils.hub_utils.
cached_download
(filename_or_url)[source]¶ Download from URL with torch.hub 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 an 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