Image super‐resolution algorithms have problems such as excessive smoothing of reconstructed images and poor visual quaity. Based on the existing image super‐ resolution algorithm SRGAN, an improved algorithm named PA‐SRGAN is proposed. The generator uses residual dense connection blocks instead of traditional residual units to ensure the input low‐resolution image features are fully transmitted throughout the generator, and pyramid attention is introduced to further improve the model performance. The discriminator adopts a relativistic average discriminator to improve the quality of the generative images and spectral normalization is used to enhance the training stability of the discriminant network. The whole model uses perceptual loss to prevent the image from being over‐smoothed and improve the perceptual quality of generated images. The experimental results show that the algorithm can obtain better perception coefficients in Set5, Set14, BSD100, Urban100 general test sets, the generative images are more in line with human visual perception.