forked from mlcommons/GaNDLF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgandlf_configGenerator
42 lines (36 loc) · 1 KB
/
gandlf_configGenerator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import argparse
from GANDLF.cli import config_generator, copyrightMessage
if __name__ == "__main__":
parser = argparse.ArgumentParser(
prog="GANDLF_ConfigGenerator",
formatter_class=argparse.RawTextHelpFormatter,
description="Generate multiple GaNDLF configurations based on a single baseline GaNDLF for experimentation.\n\n"
+ copyrightMessage,
)
parser.add_argument(
"-c",
"--config",
metavar="",
type=str,
help="Path to base config.",
required=True,
)
parser.add_argument(
"-s",
"--strategy",
metavar="",
type=str,
help="Config creation strategy in a yaml format.",
required=True,
)
parser.add_argument(
"-o",
"--output",
metavar="",
type=str,
help="Path to output directory.",
required=True,
)
args = parser.parse_args()
config_generator(args.config, args.strategy, args.output)
print("Finished.")