Created by: wuyefeilin
Move train, evaluate and infer functions to core directory. Replace the mode parameter in models by self.training. Add tqdm to val.py in core.
train
evaluate
infer
mode
self.training