1 Logger.py
import os
import traceback
class Logger(object):
'''Save training process to log file with simple plot function.'''
def __init__(self, fpath,resume=False, isPrint=False):
'''
:param fpath: 文件路径
:param resume: 继续保存
:param isPrint: 是否打印
'''
self.file = None
self.isPrint = isPrint
self.resume = resume
if os