Adjusted the strategy of training&add GUI