Module Import alias Import alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore ListLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Str Assign NameStore Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad Str Str keyword ListLoad Str Str NameLoad orelse If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call NameLoad Str Str keyword ListLoad Str Str Str NameLoad orelse Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad If Call NameLoad NameLoad Str body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr Str decorator_list Assign NameStore Call NameLoad Global identifier identifier FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Global identifier identifier If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body While NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad attr attr If NameLoad body Break orelse Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore BinOpAdd NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore BinOpAdd NameLoad Call NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad orelse If CompareEq NameLoad Str body Pass orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad decorator_list For NameStore ListLoad Str Str Str Str Str Str Str body Assign SubscriptStore Call NameLoad Index NameLoad Call NameLoad NameLoad NameLoad
N/A N/A logging N/A os shutil N/A os.path termcolor colored datetime datetime six.moves input N/A sys fs mkdir_p N/A __all__ N/A MyFormatter N/A N/A logging Formatter N/A format N/A N/A self record N/A N/A N/A date N/A colored [%(asctime)s %(lineno)d@%(filename)s:%(name)s] green N/A msg %(message)s N/A N/A N/A record levelno N/A logging WARNING N/A N/A fmt N/A N/A N/A N/A date N/A colored WRN red attrs N/A blink msg N/A N/A N/A N/A N/A record levelno N/A logging ERROR N/A N/A record levelno N/A logging CRITICAL N/A N/A fmt N/A N/A N/A N/A date N/A colored ERR red attrs N/A blink underline msg N/A N/A fmt N/A N/A date msg N/A N/A hasattr self _style N/A N/A N/A N/A self _style _fmt fmt N/A N/A self _fmt fmt N/A N/A N/A self _fmt fmt N/A N/A N/A N/A super MyFormatter self format record N/A N/A getlogger N/A N/A N/A N/A N/A logger N/A N/A logging getLogger tensorpack N/A N/A logger propagate False N/A N/A N/A logger setLevel N/A logging INFO N/A handler N/A N/A logging StreamHandler N/A N/A N/A handler setFormatter N/A MyFormatter datefmt %d %H:%M:%S N/A N/A N/A logger addHandler handler N/A logger N/A get_time_str N/A N/A N/A N/A N/A N/A N/A N/A N/A datetime now strftime %m%d-%H%M%S N/A N/A logger N/A getlogger N/A LOG_FILE LOG_DIR _set_file N/A N/A path N/A N/A N/A N/A N/A N/A os path isfile path N/A N/A backup_name N/A N/A path . N/A get_time_str N/A N/A N/A shutil move path backup_name N/A N/A info N/A N/A Log file '{}' backuped to '{}' format path backup_name N/A hdl N/A N/A logging FileHandler filename path encoding utf-8 mode w N/A N/A N/A logger addHandler hdl N/A set_logger_dir N/A N/A dirname action N/A None N/A N/A 
    Set the directory for global logging.
    :param dirname: log directory
    :param action: an action (k/b/d/n) to be performed. Will ask user by default.
     N/A LOG_FILE LOG_DIR N/A N/A N/A N/A os path isdir dirname N/A N/A N/A N/A logger warn N/A N/A Directory {} exists! Please either backup/delete it, or use a new directory unless you're resuming from a previous task. format dirname N/A N/A N/A logger info Select Action: k (keep) / b (backup) / d (delete) / n (new): N/A N/A action N/A N/A True N/A N/A act N/A N/A N/A N/A N/A input lower strip N/A act N/A N/A N/A N/A act action N/A N/A act b N/A N/A backup_name N/A dirname N/A get_time_str N/A N/A N/A shutil move dirname backup_name N/A N/A info N/A N/A Directory'{}' backuped to '{}' format dirname backup_name N/A N/A N/A act d N/A N/A N/A N/A shutil rmtree dirname N/A N/A N/A act n N/A N/A dirname N/A dirname N/A get_time_str N/A N/A info N/A N/A Use a different log directory {} format dirname N/A N/A N/A act k N/A N/A N/A N/A N/A ValueError N/A N/A Unknown action: {} format act N/A LOG_DIR dirname N/A N/A mkdir_p dirname N/A LOG_FILE N/A N/A N/A os path join dirname log.log N/A N/A _set_file LOG_FILE N/A N/A func N/A info warning error critical warn exception debug N/A N/A N/A N/A locals N/A func N/A getattr logger func