header()¶
- audmodel.header(uid, *, cache_root=None, verbose=False)[source]¶
Load model header.
- Parameters
uid (
str
) – unique model ID or short ID for latest versioncache_root (
Optional
[str
]) – cache folder where models and headers are stored. If not setaudmodel.default_cache_root()
is usedverbose (
bool
) – show debug messages
- Raises
audbackend.BackendError – if connection to repository on backend cannot be established
RuntimeError – if model does not exist on backend
- Return type
- Returns
dictionary with header fields
Examples
>>> d = header("d4e9c65b-3.0.0") >>> print(yaml.dump(d)) author: Calvin and Hobbes date: 1985-11-18 name: torch parameters: model: cnn10 data: emodb feature: melspec sampling_rate: 16000 subgroup: audmodel.dummy.cnn version: 3.0.0