We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0257cdb commit 3e454d7Copy full SHA for 3e454d7
synapse_net/training/domain_adaptation.py
@@ -109,7 +109,7 @@ def mean_teacher_adaptation(
109
if os.path.isdir(source_checkpoint):
110
model = torch_em.util.load_model(source_checkpoint)
111
else:
112
- model = torch.load(source_checkpoint)
+ model = torch.load(source_checkpoint, weights_only=False)
113
reinit_teacher = False
114
115
optimizer = torch.optim.Adam(model.parameters(), lr=1e-4)
0 commit comments