Traffic lights are set to be installed along a route in Leeds for the next 18 weeks.