Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Update checkpoint.py #299

Merged
merged 2 commits into from
Dec 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions maskrcnn_benchmark/utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def get_checkpoint_file(self):
try:
with open(save_file, "r") as f:
last_saved = f.read()
last_saved = last_saved.strip()
except IOError:
# if file doesn't exist, maybe because it has just been
# deleted by a separate process
Expand Down