Shortcuts

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

Consistently convert url into a filename.

asteroid.utils.hub_utils.get_cache_dir()[source]
asteroid.utils.hub_utils.model_list[source]

Get the public list of all the models on huggingface with an ‘asteroid’ tag.

Read the Docs v: v0.4.4
Versions
latest
stable
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
v0.3.5_b
v0.3.4
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.