repository()

audmodel.repository(uid, *, cache_root=None)[source]

Repository of a model.

Returns the repository in which the model is stored, by searching through audmodel.config.REPOSITORIES.

Parameters:
  • uid (str) – unique model ID (omit version for latest version) or alias

  • cache_root (str | None) – cache folder where models and headers are stored. If not set audmodel.default_cache_root() is used

Return type:

Repository

Returns:

repository that stores the model

Raises:

Examples

>>> audmodel.repository("d4e9c65b-3.0.0").name
'repo1'