Closed hberande closed 8 months ago
Hi @hberande, we can't always guarantee backwards compatibility for stored models (see here).
You could try to load only the weights from your checkpoint or manual save:
For this to work, you need to first create a new model object with the hyperparmeters as the stored one so that the architecture can be reproduced. If you don't know them anymore, the error messages should help setting them properly.
# recreate model from scratch
model_new = NBEATSModel(
... # same parameters
)
# load the weights (or with `load_weights(...)`)
model_new.load_weights_from_checkpoint(...)
You might have to play around with the load_encoders
parameter when calling the load_weights_*()
methods.
Hope it helps.
Hi @hberande, did the proposed solution resolve your issue?
I am trying to load the saved model in latest Darts version 0.27.1 which was trained with version = 0.25.0 or 0.26.0 and getting following error. Please help me to resolve the same.