Skip to content

Commit

Permalink
-1+1 is confusing and redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
yanfengliu committed Jan 20, 2019
1 parent b85a286 commit b5c51c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrcnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ def set_log_dir(self, model_path=None):
int(m.group(4)), int(m.group(5)))
# Epoch number in file is 1-based, and in Keras code it's 0-based.
# So, adjust for that then increment by one to start from the next epoch
self.epoch = int(m.group(6)) - 1 + 1
self.epoch = int(m.group(6))
print('Re-starting from epoch %d' % self.epoch)

# Directory for training logs
Expand Down

0 comments on commit b5c51c5

Please sign in to comment.