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 8df45a1 commit 3fecc1fCopy full SHA for 3fecc1f
synapse_net/training/supervised_training.py
@@ -201,6 +201,7 @@ def supervised_training(
201
in_channels: int = 1,
202
out_channels: int = 2,
203
mask_channel: bool = False,
204
+ checkpoint_path: Optional[str] = None,
205
**loader_kwargs,
206
):
207
"""Run supervised segmentation training.
@@ -265,6 +266,9 @@ def supervised_training(
265
266
model = get_2d_model(out_channels=out_channels, in_channels=in_channels)
267
else:
268
model = get_3d_model(out_channels=out_channels, in_channels=in_channels)
269
+
270
+ if checkpoint_path:
271
+ model = torch_em.util.load_model(checkpoint=checkpoint_path)
272
273
loss, metric = None, None
274
# No ignore label -> we can use default loss.
0 commit comments