a | b/main.py | ||
---|---|---|---|
1 | from src import get_config, train, evaluate, test |
||
2 | |||
3 | # Get config from conf.yaml |
||
4 | conf = get_config('./conf/evaluation.yaml') |
||
5 | |||
6 | task = conf['task'] |
||
7 | if task == 'training': |
||
8 | train(conf) |
||
9 | elif task == 'evaluation': |
||
10 | evaluate(conf) |
||
11 | elif task == 'testing': |
||
12 | test(conf) |
||
13 | else: |
||
14 | print('Task not supported.') |
||
15 | exit() |