forked from mrq/DL-Art-School
tblogger..
This commit is contained in:
parent
b6e036147a
commit
03258445bc
|
@ -73,9 +73,10 @@ def main():
|
||||||
logger.info(option.dict2str(opt))
|
logger.info(option.dict2str(opt))
|
||||||
# tensorboard logger
|
# tensorboard logger
|
||||||
if opt['use_tb_logger'] and 'debug' not in opt['name']:
|
if opt['use_tb_logger'] and 'debug' not in opt['name']:
|
||||||
|
tb_logger_path = '../tb_logger/' + opt['name']
|
||||||
|
|
||||||
# If not resuming, delete the existing logs. Tensorboard doesn't do too great with these.
|
# If not resuming, delete the existing logs. Tensorboard doesn't do too great with these.
|
||||||
if 'resume_state' not in opt['path'].keys():
|
if opt['path'].get('resume_state', None) is None:
|
||||||
tb_logger_path = '../tb_logger/' + opt['name']
|
|
||||||
if os.path.exists(tb_logger_path) and os.path.isdir(tb_logger_path):
|
if os.path.exists(tb_logger_path) and os.path.isdir(tb_logger_path):
|
||||||
shutil.rmtree(tb_logger_path)
|
shutil.rmtree(tb_logger_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user