def run_with_cmdline_args(args): cfg, output_dir, runner = prepare_for_launch(args) launch( post_mortem_if_fail_for_main(main), num_processes_per_machine=args.num_processes, num_machines=args.num_machines, machine_rank=args.machine_rank, dist_url=args.dist_url, backend=args.dist_backend, args=(cfg, output_dir, runner, args.eval_only, args.resume), )
def run_with_cmdline_args(args): cfg, output_dir, runner = prepare_for_launch(args) return main( cfg, output_dir, runner, # binary specific optional arguments predictor_types=args.predictor_types, compare_accuracy=args.compare_accuracy, skip_if_fail=args.skip_if_fail, )
def run_with_cmdline_args(args): cfg, output_dir, runner = prepare_for_launch(args) inference_config = None if args.inference_config_file: inference_config = CfgNode( CfgNode.load_yaml_with_base(args.inference_config_file)) return main( cfg, output_dir, runner, # binary specific optional arguments predictor_types=args.predictor_types, compare_accuracy=args.compare_accuracy, skip_if_fail=args.skip_if_fail, inference_config=inference_config, )
def run_with_cmdline_args(args): cfg, output_dir, runner = prepare_for_launch(args) launch( post_mortem_if_fail_for_main(main), args.num_processes, num_machines=args.num_machines, machine_rank=args.machine_rank, dist_url=args.dist_url, backend="GLOO", always_spawn=False, args=( cfg, output_dir, runner, # binary specific optional arguments args.predictor_path, args.num_threads, args.caffe2_engine, args.caffe2_logging_print_net_summary, ), )