SwinIR is the official PyTorch implementation of an image restoration model based on Swin Transformer. It achieves state-of-the-art performance on tasks such as classic, lightweight, and real-world image super-resolution, grayscale/color image denoising, and JPEG compression artifact removal. It consists of shallow feature extraction, deep feature extraction, and high-quality image reconstruction, with excellent performance and parameter optimization.