Skip to content

Commit 6870ee3

Browse files
author
juliusge
committed
fix weights_only
1 parent 852a6dd commit 6870ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fundus_image_toolbox/registration/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def load_model(config: dict = None):
210210

211211
model = SuperRetina().to(device)
212212
model.load_state_dict(
213-
torch.load(config["model_save_path"], map_location=device)["net"], weights_only=False
213+
torch.load(config["model_save_path"], map_location=device, weights_only = False)["net"]
214214
)
215215
model.eval()
216216

0 commit comments

Comments
 (0)