osl_dynamics.models.base.legacy.load_weights#
- osl_dynamics.models.base.legacy.load_weights(keras_model, filepath)#
Load weights saved with osl-dynamics 3.0 to 3.9.
The optimizer state and the annealing factors are not loaded.
- Parameters:
- keras_modeltf.keras.Model
Keras model to load the weights into.
- filepathstr
Path to the
model.weights.h5file.