peal.sparse_dictionaries.activation_cache.cache_path¶
- peal.sparse_dictionaries.activation_cache.cache_path(generator, data_config)[source]¶
Path of the cache file for this generator/dataset combination.
The file name is
acts_<sha1[:16]>.ptunder<generator.config.base_path>/activation_cache; the digest covers the encoder fingerprint and everydata_configfield that changes which images are encoded or how they are preprocessed.- Parameters:
generator (
InvertibleGenerator) – Generator whose encoder produces the activations; only itsconfigis inspected.data_config (
DataConfig) – Dataset configuration; missing fields count asNonein the key.
- Returns:
Absolute or base-path-relative path of the
.ptcache file.- Return type: