[f45789]: / main.py

Download this file

16 lines (13 with data), 318 Bytes

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