Fish Body Pattern Style Transfer Based on Wavelet Transformation and Gated Attention
Source abstract
Abstract
To address the temporal jitter with low segmentation accuracy and the lack of high-precision transformations for specific object classes in video generation, we propose the fish body pattern sync-style network for ornamental fish videos. This network innovatively integrates dynamic texture transfer with instance segmentation, adopting a two-stage processing architecture. First, high-precision video frame segmentation is performed using Mask2Former to eliminate background elements that do not participate in the style transfer process. Then, we introduce the wavelet-gated styling network, which reconstructs a multi-scale feature space via discrete wavelet transform, enhancing the granularity of multi-scale style features during the image generation phase. Additionally, we embed a convolutional block attention module within the residual modules, not only improving the realism of the generated images but also effectively reducing boundary artifacts in foreground objects. Furthermore, to mitigate the frame-to-frame jitter commonly observed in generated videos, we incorporate a contrastive coherence preserving loss into the training process of the style transfer network. This enhances the perceptual loss function, thereby preventing video flickering and ensuring improved temporal consistency. In real-world aquarium scenes, compared to state-of-the-art methods, FSSNet effectively preserves localized texture details in generated videos and achieves competitive SSIM and PSNR scores. Moreover, temporal consistency is significantly improved. The flow warping error index decreases to 1.412. We chose FNST (fast neural style transfer) as our baseline model and demonstrate improvements in both model parameter count and runtime efficiency. According to user preferences, 43.75% of participants preferred the dynamic effects generated by this method.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Generative Adversarial Networks and Image Synthesis · Image Processing and 3D Reconstruction · Industrial Vision Systems and Defect Detection
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Information Technology, Shanghai Ocean University, Shanghai 201306, China
Funding
National Natural Science Foundation of China
References (36)
Show source-provided references
1. Chen, T.Q., and Schmidt, M. (2016). Fast Patch-based Style Transfer of Arbitrary Style. arXiv.
2. Neural Style Transfer: A Critical Review10.1109/ACCESS.2021.3112996 ↗
3. Deep Painterly Harmonization10.1111/cgf.13478 ↗
4. Cheng, B., Misra, I., Schwing, A.G., Kirillov, A., and Girdhar, R. (2022). Masked-attention Mask Transformer for Universal Image Segmentation. arXiv.10.1109/CVPR52688.2022.00135 ↗
5. Avidan, S., Brostow, G., Cissé, M., Farinella, G.M., and Hassner, T. (2022). CCPL: Contrastive Coherence Preserving Loss for Versatile Style Transfer. Proceedings of the Computer Vision—ECCV 2022, Tel Aviv, Israel, 23–27 October 2022, Springer Nature.10.1007/978-3-031-19818-2 ↗
6. Woo, S., Park, J., Lee, J.-Y., and Kweon, I.S. (2018, January 8–14). CBAM: Convolutional Block Attention Module. In Proceedings of The European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_1 ↗
7. He, K., Gkioxari, G., Dollár, P., and Girshick, R. (2018). Mask R-CNN. arXiv.10.1109/ICCV.2017.322 ↗
8. Ren, S., He, K., Girshick, R., and Sun, J. (2016). Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. arXiv.10.1109/TPAMI.2016.2577031 ↗
9. Kurzman, L., Vazquez, D., and Laradji, I. (2019). Class-Based Styling: Real-time Localized Style Transfer with Semantic Segmentation. arXiv.10.1109/ICCVW.2019.00396 ↗
10. Rethinking Space-Time Networks with Improved Memory Coverage for Efficient Video Object Segmentation
11. Aerial-BiSeNet: A real-time semantic segmentation network for high resolution aerial imagery10.1016/j.cja.2020.10.032 ↗
12. Gatys, L.A., Ecker, A.S., and Bethge, M. (2015). A Neural Algorithm of Artistic Style. arXiv.10.1167/16.12.326 ↗
13. Chu, C., Zhmoginov, A., and Sandler, M. (2017). CycleGAN, a Master of Steganography. arXiv.
14. Huang, X., and Belongie, S. (2017). Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization. arXiv.10.1109/ICCV.2017.167 ↗
15. Liu, S., Lin, T., He, D., Li, F., Wang, M., Li, X., Sun, Z., Li, Q., and Ding, E. (2021). AdaAttN: Revisit Attention Mechanism in Arbitrary Neural Style Transfer. arXiv.10.1109/ICCV48922.2021.00658 ↗
16. Temporally consistent transformers for video generation
17. Johnson, J., Alahi, A., and Fei-Fei, L. (2016). Perceptual Losses for Real-Time Style Transfer and Super-Resolution. arXiv.10.1007/978-3-319-46475-6_43 ↗
18. Chen, D., Liao, J., Yuan, L., Yu, N., and Hua, G. (2017, January 22–29). Coherent Online Video Style Transfer. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.126 ↗
19. Li, X., Liu, S., Kautz, J., and Yang, M.-H. (2018). Learning Linear Transformations for Fast Arbitrary Style Transfer. arXiv.10.1109/CVPR.2019.00393 ↗
20. Luan, F., Paris, S., Shechtman, E., and Bala, K. (2017). Deep Photo Style Transfer. arXiv.10.1109/CVPR.2017.740 ↗
21. Local Style Transfer Method Based on Residual Neural Network10.3788/LOP57.081012 ↗
22. Simonyan, K., and Zisserman, A. (2015). Very Deep Convolutional Networks for Large-Scale Image Recognition. arXiv.
23. Gatys, L.A., Ecker, A.S., and Bethge, M. (2016, January 27–30). Image Style Transfer Using Convolutional Neural Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.265 ↗
24. Ulyanov, D., Vedaldi, A., and Lempitsky, V. (2017). Instance Normalization: The Missing Ingredient for Fast Stylization. arXiv.
25. Mallat, S. (1999). A Wavelet Tour of Signal Processing, Elsevier.10.1016/B978-012466606-1/50008-8 ↗
26. Haar wavelet downsampling: A simple but effective downsampling module for semantic segmentation10.1016/j.patcog.2023.109819 ↗
27. Qiu, X., Xu, R., He, B., Zhang, Y., Zhang, W., and Ge, W. (2022). ColoristaNet for Photorealistic Video Style Transfer. arXiv.
28. Rosenhahn, B., and Andres, B. (2016). Artistic Style Transfer for Videos. Pattern Recognition, Proceedings of the 38th German Conference, GCPR 2016, Hannover, Germany, 12–15 September 2016, Springer International Publishing.10.1007/978-3-319-45886-1 ↗
29. Ulucan, O., Karakaya, D., and Turkan, M. (2020, January 15–17). A Large-Scale Dataset for Fish Segmentation and Classification. Proceedings of the 2020 Innovations in Intelligent Systems and Applications Conference (ASYU), Istanbul, Turkey.10.1109/ASYU50717.2020.9259867 ↗
30. Fleet, D., Pajdla, T., Schiele, B., and Tuytelaars, T. (2014). Microsoft COCO: Common Objects in Context. Proceedings of the Computer Vision—ECCV 2014, Springer International Publishing.10.1007/978-3-319-10599-4 ↗
31. Deng, J., Dong, W., Socher, R., Li, L.-J., Kai, L., and Fei-Fei, L. (2009, January 20–25). ImageNet: A large-scale hierarchical image database. Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA.10.1109/CVPR.2009.5206848 ↗
32. DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFs10.1109/TPAMI.2017.2699184 ↗
33. Zhang, W., Pang, J., Chen, K., and Loy, C.C. (2021). K-Net: Towards Unified Image Segmentation. arXiv.
34. Poudel, R.P.K., Liwicki, S., and Cipolla, R. (2019). Fast-SCNN: Fast Semantic Segmentation Network. arXiv.
35. Image quality assessment: From error visibility to structural similarity10.1109/TIP.2003.819861 ↗
36. Learning Blind Video Temporal Consistency10.1007/978-3-030-01267-0_11 ↗