Just get it done. Motivation is nice but discipline gets results. Motivation will come and go. You brush your teeth every day, do the dishes, laundry... You ever feel motivated to do those things? They need to get done. That's what needs to be in your head.
Every once in a while picture yourself in 6 months to a year after good diet and training if you need a reminder