The multimillion pound upgrade of the Hope Valley line will take around two years to deliver faster and more reliable passenger services.