-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
latest = max(checkpoints, key=os.path.getctime) |
What am I trying to do?
Initialize from a previous checkpoint, to resume training over more epochs.
For example, the following snippet
try:
bem = Segmentation.init_with_checkpoints(
"unet",
model_args=dict(batchnorm=True),
checkpoint_filepath=checkpoint_filepath,
)
except:
bem = Segmentation(
unet,
model_args=dict(batchnorm=True),
multi_gpu=True,
checkpoint_filepath=checkpoint_filepath,
)
should initialize from a checkpoint if the checkpoint_filepath
exists. However, the getctime
part conflicts with other folders created during training (could be predictions or other folders).
Solution:
- Need a more robust way to look to checkpoints
Metadata
Metadata
Assignees
Labels
No labels