Please elaborate on the model training and validation process, including dataset construction and config file(.yaml)