diff --git a/dacapo/store/local_weights_store.py b/dacapo/store/local_weights_store.py index fb375602b..941906285 100644 --- a/dacapo/store/local_weights_store.py +++ b/dacapo/store/local_weights_store.py @@ -142,7 +142,9 @@ def retrieve_weights(self, run: str, iteration: int) -> Weights: weights_name = self.__get_weights_dir(run) / "iterations" / str(iteration) - weights: Weights = torch.load(weights_name, map_location="cpu") + weights: Weights = torch.load( + weights_name, map_location="cpu", weights_only=False + ) if not isinstance(weights, Weights): # backwards compatibility weights = Weights(weights["model"], weights["optimizer"])