load()

audmodel.load(uid, *, cache_root=None, verbose=False)[source]

Download a model by its unique ID.

If root is not set, the model is downloaded to the default cache folder, see audmodel.default_cache_root(). If the model already exists in the cache folder, the download is skipped.

Parameters
Return type

str

Returns

path to model folder

Raises

Examples

>>> root = load("d4e9c65b-3.0.0")
>>> "/".join(root.split(os.path.sep)[-2:])
'd4e9c65b/3.0.0'