Skip to content

Commit

Permalink
[bugfix] loading only the weights of the checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
icedoom888 authored Dec 10, 2024
1 parent da26cb7 commit 2df18a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anemoi/training/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def model(self) -> GraphForecaster:

LOGGER.info("Restoring only model weights from %s", self.last_checkpoint)

return model.load_from_checkpoint(self.last_checkpoint, **kwargs, strict=False)
return GraphForecaster.load_from_checkpoint(self.last_checkpoint, **kwargs, strict=False)

LOGGER.info("Model initialised from scratch.")
return model
Expand Down

0 comments on commit 2df18a7

Please sign in to comment.