In this paper, we apply deep learning to the channel estimation problem of OFDM. Precisely speaking, to reduce the influence of noise on LS channel estimation, we design a channel estimation model based on attention mechanism and residual network. AttRNet-Conv and AttRNet-FC use attentional mechanism to change the weight of the feature to suppress noise. Compared with other channel estimation algorithms based on deep learning, AttRNet-Conv and AttRNet-FC avoid damaging channel information. The simulation results show that AttRNet-Conv and AttRNet-FC are superior to existing channel estimation algorithms based on deep learning in both high and low pilot frequency conditions. Even at low SNR, the estimation accuracy is higher than that of LMMSE. Experimental results show thatAttRNet-Conv and AttRNet-FC has strong robustness. In addition, we find that AttRNet-Conv is more suitable for channel estimation at low SNR in EPA, and the AttRNet-FC model is used in other cases.