MCPcopy Index your code
hub / github.com/CandleLabAI/PCBSegClassNet / parse_config

Function parse_config

src/train_classification.py:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def parse_config():
14 parser = argparse.ArgumentParser()
15 parser.add_argument(
16 "-opt", type=str, required=True, help="Path to option YAML file."
17 )
18 parser.add_argument("-epoch", type=int, default=1, help="number of epochs.")
19 args = parser.parse_args()
20
21 opt = parse(args.opt)
22 opt["train"]["total_epochs"] = args.epoch
23 return opt
24
25
26def init_log(opt):

Callers 1

mainFunction · 0.70

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected