Robotics
Adapters
File size: 626 Bytes
848d49a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import argparse
import subprocess


def main(config_dir, config_name, args):
    subprocess.run(["optimum-benchmark", "--config-dir", f"{config_dir}", "--config-name", f"{config_name}"] + ["hydra/job_logging=disabled", "hydra/hydra_logging=disabled"] + args)


if __name__ == "__main__":
    parser = argparse.ArgumentParser()

    parser.add_argument("--config-dir", type=str, required=True, help="The path to the config directory.")
    parser.add_argument("--config-name", type=str, required=True, help="The config name.")
    args, unknown = parser.parse_known_args()

    main(args.config_dir, args.config_name, unknown)