Skip to content

Commit

Permalink
Changed the log folder naming to use safe characters for Windows and …
Browse files Browse the repository at this point in the history
…Linux

I replaced some special characters like `:` in the time for `.` to avoid errors on Windows as a folder can not contain on windows those characters on their name.
  • Loading branch information
ZeroCool940711 authored Mar 29, 2020
1 parent d4e4e6d commit bae02b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
log_dir = os.path.join(*os.path.split(opt.checkpoint)[:-1])
else:
log_dir = os.path.join(opt.log_dir, os.path.basename(opt.config).split('.')[0])
log_dir += ' ' + strftime("%d-%m-%y %H:%M:%S", gmtime())
log_dir += ' ' + strftime("%d_%m_%y_%H.%M.%S", gmtime())

generator = OcclusionAwareGenerator(**config['model_params']['generator_params'],
**config['model_params']['common_params'])
Expand Down

0 comments on commit bae02b2

Please sign in to comment.