Skip to content
Snippets Groups Projects
Commit 9d169877 authored by Léo Schneider's avatar Léo Schneider Committed by Schneider Leo
Browse files

fix para

parent b938ff4c
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ def test_best_model(best_result, args): ...@@ -204,7 +204,7 @@ def test_best_model(best_result, args):
best_trained_model.to(device) best_trained_model.to(device)
criterion_rt = torch.nn.MSELoss() criterion_rt = torch.nn.MSELoss()
criterion_intensity = masked_cos_sim criterion_intensity = masked_cos_sim
checkpoint_path = os.path.join(best_result.checkpoint.to_directory(), "checkpoint.pt") checkpoint_path = os.path.joi10n(best_result.checkpoint.to_directory(), "checkpoint.pt")
model_state, optimizer_state = torch.load(checkpoint_path) model_state, optimizer_state = torch.load(checkpoint_path)
best_trained_model.load_state_dict(model_state) best_trained_model.load_state_dict(model_state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment