Skip to content

Commit

Permalink
Use model.load_state_dict_from_path in core/train
Browse files Browse the repository at this point in the history
  • Loading branch information
NickleDave committed Dec 25, 2022
1 parent 97c24c2 commit ab74efb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vak/core/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ def train(
logger.info(
f"loading checkpoint for {model_name} from path: {checkpoint_path}",
)
# TODO: make sure this works
model.load_from_checkpoint(checkpoint_path)
model.load_state_dict_from_path(checkpoint_path)

results_model_root = results_path.joinpath(model_name)
results_model_root.mkdir()
Expand Down

0 comments on commit ab74efb

Please sign in to comment.