Study of the departures from LTE in the unevolved stars infrared spectra