mirror of
https://github.com/allenai/olmocr.git
synced 2025-10-13 09:12:18 +00:00
One idea for resume fix
This commit is contained in:
parent
2a20607d37
commit
6d6476b31a
@ -188,7 +188,7 @@ def main():
|
|||||||
checkpoint_dirs.sort(key=lambda x: int(x.split("-")[1]))
|
checkpoint_dirs.sort(key=lambda x: int(x.split("-")[1]))
|
||||||
latest_checkpoint = os.path.join(full_output_dir, checkpoint_dirs[-1])
|
latest_checkpoint = os.path.join(full_output_dir, checkpoint_dirs[-1])
|
||||||
logger.info(f"Found existing checkpoint: {latest_checkpoint}")
|
logger.info(f"Found existing checkpoint: {latest_checkpoint}")
|
||||||
found_resumable_checkpoint = True
|
found_resumable_checkpoint = latest_checkpoint
|
||||||
else:
|
else:
|
||||||
logger.info("No existing checkpoints found in output directory")
|
logger.info("No existing checkpoints found in output directory")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user