Skip to content

Commit

Permalink
Merge branch 'main' into aimseg-data
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Feb 22, 2025
2 parents 3766d37 + 9cc87d2 commit ccc452a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_em/trainer/default_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def load_logger(self, kwarg_name: str, optional: bool):
def _get_save_dict(save_path, device):
if not os.path.exists(save_path):
raise ValueError(f"Cannot find checkpoint {save_path}")
return torch.load(save_path, map_location=device)
return torch.load(save_path, map_location=device, weights_only=False)

@classmethod
def from_checkpoint(
Expand Down

0 comments on commit ccc452a

Please sign in to comment.