hyrax.verbs.infer
Attributes
Classes
Inference verb |
Module Contents
- class Infer(config)[source]
Bases:
hyrax.verbs.verb_registry.VerbInference verb
Overall initialization for all verbs that saves the config
- run()[source]
Run inference on a model using a dataset
- Parameters:
config (ConfigDict) – The parsed config file as a nested dict
- static load_model_weights(config, model)[source]
Loads the model weights from a file. Raises RuntimeError if this is not possible due to config, missing or malformed file
- Parameters:
config (ConfigDict) – Full runtime configuration
model (nn.Module) – The model class to load weights into