Beispiel #1
0
def parse_args(cmd_args):
    args = EasyDict()

    # args copied from cmd_args
    args.out_dir = cmd_args.out_dir
    args.height = cmd_args.height
    args.width = cmd_args.width
    args.n_triangle = cmd_args.n_triangle
    args.alpha_scale = cmd_args.alpha_scale
    args.coordinate_scale = cmd_args.coordinate_scale
    args.fps = cmd_args.fps
    args.n_population = cmd_args.n_population
    args.n_iterations = cmd_args.n_iterations
    args.report_interval = cmd_args.report_interval
    args.step_report_interval = cmd_args.step_report_interval
    args.save_as_gif_interval = cmd_args.save_as_gif_interval
    args.gpus = cmd_args.gpus
    args.thread_per_clip = cmd_args.thread_per_clip
    args.prompt = cmd_args.prompt

    return args
def parse_args(cmd_args):
    args = EasyDict()

    args.out_dir = cmd_args.out_dir
    args.height = cmd_args.height
    args.width = cmd_args.width
    args.target_fn = cmd_args.target_fn
    args.n_triangle = cmd_args.n_triangle
    args.loss_type = cmd_args.loss_type
    args.alpha_scale = cmd_args.alpha_scale
    args.coordinate_scale = cmd_args.coordinate_scale
    args.fps = cmd_args.fps
    args.n_population = cmd_args.n_population
    args.n_iterations = cmd_args.n_iterations
    args.mp_batch_size = cmd_args.mp_batch_size
    args.solver = cmd_args.solver
    args.report_interval = cmd_args.report_interval
    args.step_report_interval = cmd_args.step_report_interval
    args.save_as_gif_interval = cmd_args.save_as_gif_interval
    args.profile = cmd_args.profile

    return args