def main():
    args = parse_arguments()
    cfg = build_config(args.config_file)
    cfg = merge_args(cfg, args)
    cfg.args = args
    trainer = Trainer(cfg)
    trainer.train()
def main():
    args = parse_arguments()
    cfg = build_config(args.config_file)
    cfg = merge_args(cfg, args)
    cfg.args = args
    trainer = Trainer(cfg)
    trainer.train()