-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
20 lines (14 loc) · 694 Bytes
/
main.py
File metadata and controls
20 lines (14 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import argparse
from Trainer import Trainer
from tboard import initiateTensorboard
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Configuration File Path')
parser.add_argument("-c", "--conf", action="store", dest="conf_file",help="Path to config file")
parser.add_argument("-tb", "--tensorboard", action="store_true", dest="tb_flag",help="tensorboard flag")
parser.add_argument("-tbpth", "--tensorboard_path", action="store", dest="tb_path",help="tensorboard flag")
args = parser.parse_args()
initiateTensorboard(args.tb_flag,args.tb_path)
conf_path = args.conf_file
if conf_path is None:
conf_path = 'configs/config.yaml'
Trainer(conf_path).train()