Skip to content

Commit

Permalink
Create the inference log directory if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ceshine committed Oct 15, 2019
1 parent b6d09e5 commit 7ec86d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yt8m/create_submission_from_memmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def main():
arg('--model-names', nargs="+")
args = parser.parse_args()

Path("data/cache/inference").mkdir(exist_ok=True, parents=True)

model_dir = Path(args.model_dir)
predictions = []
with open(f"data/cache/inference/{datetime.now().strftime('log_%m%d_%H%M')}.txt", "w") as fout:
Expand Down

0 comments on commit 7ec86d9

Please sign in to comment.