LoadedModel#
- class ctlearn.core.model.LoadedModel(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
CTLearnModelLoadedModelis a pre-trained Keras model.This class extends the functionality of
CTLearnModelby implementing methods to load a pre-trained Keras model. The model can be used as a backbone for the CTLearn model.Attributes Summary
Path to a Keras model file (Keras3) or directory Keras2)
Set to overwrite the fully connected head from the loaded model.
Set to set the backbone model to be trainable.
Attributes Documentation
- load_model_from#
Path to a Keras model file (Keras3) or directory Keras2)
- overwrite_head#
Set to overwrite the fully connected head from the loaded model.
- trainable_backbone#
Set to set the backbone model to be trainable.