Skip to content

Commit

Permalink
Merge pull request thtrieu#408 from AlexFridman/master
Browse files Browse the repository at this point in the history
Make backup flag does not require for a trailing slash
  • Loading branch information
abagshaw authored Jan 9, 2018
2 parents d932e66 + 0072464 commit 718a116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darkflow/net/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def build_train_op(self):

def load_from_ckpt(self):
if self.FLAGS.load < 0: # load lastest ckpt
with open(self.FLAGS.backup + 'checkpoint', 'r') as f:
with open(os.path.join(self.FLAGS.backup, 'checkpoint'), 'r') as f:
last = f.readlines()[-1].strip()
load_point = last.split(' ')[1]
load_point = load_point.split('"')[1]
Expand Down

0 comments on commit 718a116

Please sign in to comment.