SwinUnetSR: A Transformer-based Encoder-Decoder Structure with a Lightweight Upsampler for Face Super Resolution
Abstract
Face Super-Resolution (FSR) is a critical task aimed at enhancing low-resolution (LR) face images into high-resolution (HR) ones while preserving essential facial features. This task has broad applications, including identity recognition in surveillance systems and facial detail restoration for biometric authentication. In this paper, a novel hybrid architecture, SwinUnetSR, is proposed for FSR tasks. Built on the SwinV2-B transformer, the model integrates it within a Convolutional Networks for Biomedical Image Segmentation (U-Net) framework, followed by a lightweight upsampler for HR image reconstruction. The encoder, based on SwinV2-B, leverages hierarchical attention mechanisms to efficiently process global contextual information and down-sample facial features. U-Net serves as the decoder, where skip connections fuse the compressed features with SwinV2-B outputs. A lightweight upsampler then upscales the feature maps into HR images. Experimental results demonstrate that SwinUnetSR achieves high Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity (SSIM) scores, indicating its effectiveness. While computational resource limitations and data scarcity prevent it from outperforming state-of-the-art models, the high evaluation scores confirm the feasibility of SwinUnetSR for FSR. Furthermore, the model holds promise for future expansion to more complex scenarios. Code is available at: https://github.com/KbKuuhaku/swin-unet-sr.
References
- Baker, S., & Kanade, T. (2000). Hallucinating faces. In Proceedings Fourth IEEE International Conference on Automatic Face and Gesture Recognition, 580, 83-88.
- Ce, L., Heung, Y.S., & Zhang, C.S., (2001). A two-step approach to hallucinating faces: global parametric model and local nonparametric model. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, I-I.
- Lepcha, D. C., Goyal, B., Dogra, A. (2023). Image super-resolution: A comprehensive review, recent trends, challenges and applications. Information Fusion, 91, 230-260.
- Chang, H., Yeung, D.Y., & Xiong, Y.M., (2004). Super-resolution through neighbor embedding. In Proceedings of the 2004 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, I-I.
- Jiang, J., Hu, R., Wang, Z. (2014). Noise Robust Face Hallucination via Locality-Constrained Representation. IEEE Transactions on Multimedia, 16(5), 1268-1281.
- Zhou, E., Fan, H., Cao, Z., et al. (2015). Learning Face Hallucination in the Wild. Proceedings of the AAAI Conference on Artificial Intelligence, 29(1).
- Goodfellow, I., Pouget-Abadie, J., Mirza, M., et al. (2020). Generative adversarial networks. Commun. ACM, 63(11), 139–144.
- Zhou, C., Li, Q., Li, C., et al. (2024). A comprehensive survey on pretrained foundation models: A history from bert to chatgpt. International Journal of Machine Learning and Cybernetics, 1-65.
- Alexey, D., Lucas, B., Alexander, K., et al. (2021). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In 9th International Conference on Learning Representations, 3-7.
- Liu, Z., Lin, Y., Cao, Y., et al. (2021). Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. In IEEE/CVF International Conference on Computer Vision, 9992-10002.
- Liu, Z., Hu, H., Lin, Y., et al. (2022). Swin Transformer V2: Scaling Up Capacity and Resolution. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 11999-12009.
- Liang, J., Cao, J., Sun, G., et al. (2021). SwinIR: Image Restoration Using Swin Transformer. In IEEE/CVF International Conference on Computer Vision Workshops, 1833-1844.
- Karras, T., Laine, S., & Aila, T. (2021). A Style-Based Generator Architecture for Generative Adversarial Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(12), 4217-4228.
- Chang, Y., Wang, X., Wang, J., et al. (2024). A survey on evaluation of large language models. ACM transactions on intelligent systems and technology, 15(3), 1-45.
- Zuo, C., Qian, J., Feng, S., et al. (2022). Deep learning in optical metrology: a review. Light: Science & Applications, 11(1), 1-54.