CNN-based image style transformation--Using VGG19
Abstract
eural Style Transfer is a widely used approach in the field of computer vision, which aims to generate visual effects by integrating the information contained in one image into another. In this paper, this work presents an implementation of neural style transfer using TensorFlow and the VGG19 model. The proposed method involves loading and preprocessing the content and style images, extracting features from both images using the VGG19 model, and computing Gram matrices to capture the style information. A StyleContentModel class is introduced to encapsulate the style and content extraction process. The optimization process is performed using the Adam optimizer, where gradients are applied to iteratively update the generated image. The number of epochs and steps per epoch can be adjusted to control the optimization process and achieve desired results. Experiments show that we are effective in generating an image that is able to integrate the content of one image into the other. The generated images exhibit visually appealing characteristics and showcase the potential of neural style transfer as a creative tool in image synthesis. Future work may involve exploring different variations of the style transfer algorithm, optimizing hyperparameters, and evaluating the performance on a wider range of image datasets. Additionally, the integration of other deep learning architectures and techniques could further enhance the capabilities of neural style transfer.
References
- Gatys, L.A., Ecker, A.S., and Bethge, M., 2016. Image style transfer using Convolutional Neural Networks. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).
- isco, Y., and Carmona, R., 2022. Face recognition using deep learning feature injection: An accurate hybrid network combining neural networks based on feature extraction with Convolutional Neural Network. 2022 XVLIII Latin American Computer Conference (CLEI).
- Chu, W.-T., and Wu, Y.-L., 2018a. Image style classification based on learnt deep correlation features. IEEE Transactions on Multimedia, 20(9), pp.2491–2502.
- Long Zhang,2022. Research on Image Style Transfer Algorithm Based on Generative Adversarial Networks. Master’s thesis, Chongqing University of Posts and Telecommunications, 2023.
- Renwei Tang, 2022.Research and application of real image deformable style transfer. Master’s thesis, University of Electronic Science and technology.
- zhiwei Wang, 2023.Research on brand visual identity design based on Generative Art. Master’s thesis, Jiangnan University
- Wang, Y., and Li, L., 2022. The research and implementation of clothing style transfer algorithm based on cyclegan. 2022 4th International Conference on Pattern Recognition and Intelligent Systems.
- ZePing Liu, 2022.Research on AGV gesture scheduling based on global vision. Master’s thesis, Qingdao University,
- Li, Y., Wang, N., Liu, J., and Hou, X., 2017. Demystifying neural style transfer. Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence.
- yanhua Liang, 2022. Research on the theory and method of image saliency detection model for different modes. Master’s thesis, Jilin University