Structs§
- Disk
Cache Config - Cache Policy
- PreFab
Config - A
ConfigWell-Known Pre-Fab. - PreFab
Map - A map of
PreFabConfigs. - Pretrained
Weights Descriptor - A descriptor for a pretrained weights file.
- Pretrained
Weights Map - Directory of
PretrainedWeightsDescriptors. - Static
PreFab Config - Static builder for a
PreFabConfig - Static
PreFab Map - Static builder for a
PreFabMap. - Static
Pretrained Weights Descriptor - Static
PretrainedWeightsDescriptorprovider. - Static
Pretrained Weights Map - Static
PretrainedWeightsMapbuilder.
Functions§
- fetch_
model_ weights - Returns a local path to model weights file. If the file does not exist, it will be downloaded from the given URL.
- pretrained_
weights_ resource_ key - Get the cache resource key for a pretrained weights file.
- try_
cache_ download_ to_ path - Download a URL resource to a given path.
- url_
to_ cache_ key - Build a cache key (bare cache file name) from a name and URL.