Shortcuts

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
asteroid.utils.hub_utils.get_cache_dir()[source]
asteroid.utils.hub_utils.url_to_filename(url)[source]

Consistently convert url into a filename.

Read the Docs v: v0.3.3
Versions
latest
stable
v0.3.3
v0.3.2
v0.3.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.