LoadedModel#

class ctlearn.core.LoadedModel(*args: t.Any, **kwargs: t.Any)[source]#

Bases: CTLearnModel

LoadedModel is a pre-trained Keras model.

This class extends the functionality of CTLearnModel by implementing methods to load a pre-trained Keras model. The model can be used as a backbone for the CTLearn model.

Attributes Summary

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.

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.