Skip to content

Commit

Permalink
Fixed tabbing issue in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
waleedka committed Sep 21, 2018
1 parent 42e78ab commit 744fbc2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mrcnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2259,11 +2259,9 @@ def set_log_dir(self, model_path=None):
if model_path:
# Continue from we left of. Get epoch and date from the file name
# A sample model path might look like:
# \path\to\logs\coco20171029T2315\mask_rcnn_coco_0001.h5 (Windows)
# /path/to/logs/coco20171029T2315/mask_rcnn_coco_0001.h5 (Linux)

regex = r".*[/\\][\w-]+(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})[/\\]mask\_rcnn\_[\w-]+(\d{4})\.h5"

# \path\to\logs\coco20171029T2315\mask_rcnn_coco_0001.h5 (Windows)
# /path/to/logs/coco20171029T2315/mask_rcnn_coco_0001.h5 (Linux)
regex = r".*[/\\][\w-]+(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})[/\\]mask\_rcnn\_[\w-]+(\d{4})\.h5"
m = re.match(regex, model_path)
if m:
now = datetime.datetime(int(m.group(1)), int(m.group(2)), int(m.group(3)),
Expand Down

0 comments on commit 744fbc2

Please sign in to comment.