MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / build_config

Function build_config

program.py:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def build_config():
45 args = ArgsParser().parse_args()
46 flags = Flags(args.config).get()
47 log_file_path = os.path.join(flags.Global.save_model_dir, time.strftime('%Y%m%d_%H%M%S') + '.log')
48 os.makedirs(flags.Global.save_model_dir, exist_ok=True)
49 logger = initial_logger(log_file_path)
50 return flags
51
52
53def build_model(flags):

Callers 3

__init__Method · 0.90
predict.pyFile · 0.90
mainFunction · 0.90

Calls 5

FlagsClass · 0.90
initial_loggerFunction · 0.90
ArgsParserClass · 0.85
parse_argsMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected