osc.utils.latest_checkpoint

latest_checkpoint(run_dir)[source]

Find the checkpoint with the highest numerical epoch.

Parameters

run_dir (Union[Path, str]) – the search path containing checkpoint.*.pth files.

Return type

Path

Returns

Path to the checkpoint.