Fast Coherent Video Style Transfer via Flow Errors Reduction
Source abstract
Abstract
For video style transfer, naively applying still image techniques to process a video frame-by-frame independently often causes flickering artefacts. Some works adopt optical flow into the design of temporal constraint loss to secure temporal consistency. However, these works still suffer from incoherence (including ghosting artefacts) where large motions or occlusions occur, as optical flow fails to detect the boundaries of objects accurately. To address this problem, we propose a novel framework which consists of the following two stages: (1) creating new initialization images from proposed mask techniques, which are able to significantly reduce the flow errors; (2) process these initialized images iteratively with proposed losses to obtain stylized videos which are free of artefacts, which also increases the speed from over 3 min per frame to less than 2 s per frame for the gradient-based optimization methods. To be specific, we propose a multi-scale mask fusion scheme to reduce untraceable flow errors, and obtain an incremental mask to reduce ghosting artefacts. In addition, a multi-frame mask fusion scheme is designed to reduce traceable flow errors. In our proposed losses, the Sharpness Losses are used to deal with the potential image blurriness artefacts over long-range frames, and the Coherent Losses are performed to restrict the temporal consistency at both the multi-frame RGB level and Feature level. Overall, our approach produces stable video stylization outputs even in large motion or occlusion scenarios. The experiments demonstrate that the proposed method outperforms the state-of-the-art video style transfer methods qualitatively and quantitatively on the MPI Sintel dataset.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Image Processing Techniques · Image and Signal Denoising Methods · Image Enhancement Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Computer and Data Engineering, NingboTech University, Ningbo 315100, China
National Centre for Computer Animation, Bournemouth University, Poole BH12 5BB, UK
References (70)
Show source-provided references
1. Tomasi, C., and Manduchi, R. (1998, January 4–8). Bilateral filtering for gray and color images. Proceedings of the IEEE International Conference on Computer Vision (ICCV), Bombay, India.
2. Karras, T., Laine, S., and Aila, T. (2019, January 16–20). A style-based generator architecture for generative adversarial networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00453 ↗
3. Real-time video abstraction10.1145/1141911.1142018 ↗
4. Vtoonify: Controllable high-resolution portrait video style transfer
5. Li, Z., Wu, X.M., and Chang, S.F. (2012, January 16–21). Segmentation using superpixels: A bipartite graph partitioning approach. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Providence, RI, USA.
6. Photo stylistic brush: Robust style transfer via superpixel-based bipartite graph10.1109/TMM.2017.2780761 ↗
7. Lee, H.-Y., Li, Y.-H., Lee, T.-H., and Aslam, M.S. (2023). Progressively Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation. Sensors, 23.10.3390/s23156858 ↗
8. Dediu, M., Vasile, C.E., and Bîră, C. (2023). Deep Layer Aggregation Architectures for Photorealistic Universal Style Transfer. Sensors, 23.10.3390/s23094528 ↗
9. Gatys, L.A., Ecker, A.S., and Bethge, M. (July, January 26). Image style transfer using convolutional neural networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.
10. Johnson, J., Alahi, A., and Li, F.F. (2016, January 11–14). Perceptual losses for real-time style transfer and super-resolution. Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands.10.1007/978-3-319-46475-6_43 ↗
11. Li, Y., Fang, C., Yang, J., Wang, Z., Lu, X., and Yang, M.H. (2017, January 21–26). Diversified texture synthesis with feed-forward networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.36 ↗
12. Chen, D., Yuan, L., Liao, J., Yu, N., and Hua, G. (2017, January 21–26). Stylebank: An explicit representation for neural image style transfer. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.296 ↗
13. Huang, X., and Belongie, S. (2017, January 22–29). Arbitrary style transfer in real-time with adaptive instance normalization. Proceedings of the IEEE Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.167 ↗
14. Chen, T.Q., and Schmidt, M. (2016). Fast patch-based style transfer of arbitrary style. arXiv.
15. A unified arbitrary style transfer framework via adaptive contrastive learning10.1145/3618342 ↗
16. Zhang, Z., Zhang, Q., Li, G., Xing, W., Zhao, L., Sun, J., Lan, Z., Luan, J., Huang, Y., and Lin, H. (2023). ArtBank: Artistic Style Transfer with Pre-trained Diffusion Model and Implicit Style Prompt Bank. arXiv.
17. Kwon, J., Kim, S., Lin, Y., Yoo, S., and Cha, J. (2023). AesFA: An Aesthetic Feature-Aware Arbitrary Neural Style Transfer. arXiv.
18. Image style classification based on learnt deep correlation features10.1109/TMM.2018.2801718 ↗
19. Yang, J., Chen, L., Zhang, L., Sun, X., She, D., Lu, S.P., and Cheng, M.M. (2018, January 22–26). Historical context-based style classification of painting images via label distribution learning. Proceedings of the ACM Multimedia Conference on Multimedia Conference, Seoul, Republic of Korea.10.1145/3240508.3240593 ↗
20. Hicsonmez, S., Samet, N., Sener, F., and Duygulu, P. (2017, January 6–11). Draw: Deep networks for recognizing styles of artists who illustrate children’s books. Proceedings of the ACM on International Conference on Multimedia Retrieval, Sydney, Australia.10.1145/3078971.3078982 ↗
21. Improving video saliency detection via localized estimation and spatiotemporal refinement10.1109/TMM.2018.2829605 ↗
22. Spatio-temporal saliency networks for dynamic saliency prediction10.1109/TMM.2017.2777665 ↗
23. Anderson, A.G., Berg, C.P., Mossing, D.P., and Olshausen, B.A. (2016). Deepmovie: Using optical flow and deep neural networks to stylize movies. arXiv.
24. Ruder, M., Dosovitskiy, A., and Brox, T. (2016, January 12–15). Artistic style transfer for videos. Proceedings of the German Conference on Pattern Recognition, Hannover, Germany.10.1007/978-3-319-45886-1_3 ↗
25. Zhang, H., and Dana, K. (2018, January 8–14). Multi-style generative network for real-time transfer. Proceedings of the European Conference on Computer Vision (ECCV) Workshops, Munich, Germany.10.1007/978-3-030-11018-5_32 ↗
26. Ulyanov, D., Vedaldi, A., and Lempitsky, V. (2017, January 21–26). Improved texture networks: Maximizing quality and diversity in feed-forward stylization and texture synthesis. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.437 ↗
27. Huang, H., Wang, H., Luo, W., Ma, L., Jiang, W., Zhu, X., Li, Z., and Liu, W. (2017, January 21–26). Real-time neural style transfer for videos. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.745 ↗
28. Gupta, A., Johnson, J., Alahi, A., and Li, F.F. (2017, January 21–26). Characterizing and improving stability in neural style transfer. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/ICCV.2017.438 ↗
29. Chen, D., Liao, J., Yuan, L., Yu, N., and Hua, G. (2017, January 22–29). Coherent online video style transfer. Proceedings of the IEEE Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.126 ↗
30. Artistic style transfer for videos and spherical images10.1007/s11263-018-1089-z ↗
31. Learning self-supervised space-time CNN for fast video style transfer10.1109/TIP.2021.3052709 ↗
32. Structure-guided arbitrary style transfer for artistic image and video10.1109/TMM.2021.3063605 ↗
33. Kong, X., Deng, Y., Tang, F., Dong, W., Ma, C., Chen, Y., He, Z., and Xu, C. (2023). Exploring the Temporal Consistency of Arbitrary Style Transfer: A Channelwise Perspective, IEEE Transactions on Neural Networks and Learning Systems.10.1109/TNNLS.2022.3230084 ↗
34. Towards efficient image and video style transfer via distillation and learnable feature transformation10.1016/j.cviu.2024.103947 ↗
35. Li, X., Liu, S., Kautz, J., and Yang, M.H. (2019, January 16–20). Learning linear transformations for fast image and video style transfer. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00393 ↗
36. Consistent Video Style Transfer via Relaxation and Regularization10.1109/TIP.2020.3024018 ↗
37. Wu, Z., Zhu, Z., Du, J., and Bai, X. (2022, January 23–27). CCPL: Contrastive coherence preserving loss for versatile style transfer. Proceedings of the European Conference on Computer Vision (ECCV), Tel Aviv, Israel.10.1007/978-3-031-19787-1_11 ↗
38. Gu, B.H., Fan, H., and Zhang, L.B. (2023, January 2–6). Two Birds, One Stone: A Unified Framework for Joint Learning of Image and Video Style Transfers. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France.10.1109/ICCV51070.2023.02152 ↗
39. Gatys, L.A., Ecker, A.S., and Bethge, M. (2015, January 7–10). Texture synthesis using convolutional neural networks. Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canad.10.1109/CVPR.2016.265 ↗
40. Gatys, L.A., Ecker, A.S., and Bethge, M. (2015). A neural algorithm of artistic style. arXiv.10.1167/16.12.326 ↗
41. Li, Y., Fang, C., Yang, J., Wang, Z., Lu, X., and Yang, M.H. (2017, January 4–9). Universal style transfer via feature transforms. Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA.
42. Wang, X., Oxholm, G., Zhang, D., and Wang, Y.F. (2017, January 21–26). Multimodal transfer: A hierarchical deep convolutional neural network for fast artistic style transfer. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.759 ↗
43. Wilmot, P., Risser, E., and Barnes, C. (2017). Stable and controllable neural texture synthesis and style transfer using histogram losses. arXiv.
44. Shen, F., Yan, S., and Zeng, G. (2017). Meta networks for neural style transfer. arXiv.
45. Ulyanov, D., Lebedev, V., Vedaldi, A., and Lempitsky, V.S. (2016). Texture networks: Feed-forward synthesis of textures and stylized images. arXiv.
46. Yao, Y., Ren, J., Xie, X., Liu, W., Liu, Y.J., and Wang, J. (2019, January 16–20). Attention-aware multi-stroke style transfer. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00156 ↗
47. Kotovenko, D., Sanakoyeu, A., Ma, P., Lang, S., and Ommer, B. (2019, January 16–20). A content transformation block for image style transfer. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.01027 ↗
48. Kolkin, N., Salavon, J., and Shakhnarovich, G. (2019, January 16–20). Style transfer by relaxed optimal transport and self-similarity. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.01029 ↗
49. Wang, H., Li, Y., Wang, Y., Hu, H., and Yang, M.-H. (2020, January 13–19). Collaborative distillation for ultra-resolution universal style transfer. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00193 ↗
50. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
51. Eigen, D., Puhrsch, C., and Fergus, R. (2014, January 12–13). Depth map prediction from a single image using a multi-scale deep network. Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada.
52. Eigen, D., and Fergus, R. (2015, January 8–10). Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.10.1109/ICCV.2015.304 ↗
53. Artistic style transfer with internal-external learning and contrastive learning
54. Deng, Y., Tang, F., Dong, W., Sun, W., Huang, F., and Xu, C. (2020, January 12–16). Arbitrary style transfer via multi-adaptation network. Proceedings of the 28th ACM International Conference on Multimedia, Seattle, WA, USA.10.1145/3394171.3414015 ↗
55. Liu, S., Lin, T., He, D., Li, F., Wang, M., Li, X., and Ding, E. (2021, January 11–17). Adaattn: Revisit attention mechanism in arbitrary neural style transfer. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada.10.1109/ICCV48922.2021.00658 ↗
56. Luo, X., Han, Z., Yang, L., and Zhang, L. (2022). Consistent style transfer. arXiv.
57. Park, D.Y., and Lee, K.H. (2019, January 16–20). Arbitrary style transfer with style-attentional networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00603 ↗
58. Wu, X., Hu, Z., Sheng, L., and Xu, D. (2021, January 19–25). Styleformer: Real-time arbitrary style transfer via parametric style composition. Proceedings of the IEEE/CVF International Conference on Computer Vision (CVPR), Nashville, TN, USA.10.1109/ICCV48922.2021.01435 ↗
59. Deng, Y., Tang, F., Dong, W., Ma, C., Pan, X., Wang, L., and Xu, C. (2022, January 21–24). Stytr2: Image style transfer with transformers. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA.10.1109/CVPR52688.2022.01104 ↗
60. Deep neural networks for no-reference and full-reference image quality assessment10.1109/TIP.2017.2760518 ↗
61. Lai, W.S., Huang, J.B., Wang, O., Shechtman, E., Yumer, E., and Yang, M.H. (2018, January 8–14). Learning blind video temporal consistency. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01267-0_11 ↗
62. Deng, Y., Tang, F., Dong, W., Huang, H., Ma, C., and Xu, C. (2021, January 2–9). Arbitrary video style transfer via multi-channel correlation. Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada.10.1609/aaai.v35i2.16208 ↗
63. Ilg, E., Mayer, N., Saikia, T., Keuper, M., Dosovitskiy, A., and Brox, T. (2017, January 21–26). Flownet 2.0: Evolution of optical flow estimation with deep networks. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA. Available online: http://lmb.informatik.uni-freiburg.de//Publications/2017/IMKDB17.10.1109/CVPR.2017.179 ↗
64. Gao, C., Gu, D., Zhang, F., and Yu, Y. (2018, January 2–6). Reconet: Real-time coherent video style transfer network. Proceedings of the Asian Conference on Computer Vision, Perth, Australia.10.1007/978-3-030-20876-9_40 ↗
65. Text2video: An end-to-end learning framework for expressing text with videos10.1109/TMM.2018.2807588 ↗
66. Butler, D.J., Wulff, J., Stanley, G.B., and Black, M.J. (2012, January 16–21). A naturalistic open source movie for optical flow evaluation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Providence, RI, USA.10.1007/978-3-642-33783-3_44 ↗
67. Weinzaepfel, P., Revaud, J., Harchaoui, Z., and Schmid, C. (2013, January 25–27). Deepflow: Large displacement optical flow with deep matching. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Portland, OR, USA.10.1109/ICCV.2013.175 ↗
68. Pont-Tuset, J., Perazzi, F., Caelles, S., Arbeláez, P., Sorkine-Hornung, A., and Van Gool, L. (2017). The 2017 davis challenge on video object segmentation. arXiv.
69. No-reference image sharpness assessment in autoregressive parameter space10.1109/TIP.2015.2439035 ↗
70. A fast wavelet-based algorithm for global and local image sharpness estimation10.1109/LSP.2012.2199980 ↗