Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion synapse_net/inference/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def get_prediction_torch_em(
if os.path.isdir(model_path): # Load the model from a torch_em checkpoint.
model = torch_em.util.load_model(checkpoint=model_path, device=device)
else: # Load the model directly from a serialized pytorch model.
model = torch.load(model_path)
model = torch.load(model_path, weights_only=False)

# Run prediction with the model.
with torch.no_grad():
Expand Down