Emulating Artistic Expressions in Robot Painting: A Stroke-Based Approach
Abstract
:1. Introduction
2. Related Work
2.1. Stroke-Based Painting
2.2. Learning-Based Painting
3. Problem Description
3.1. The Framework for the Painting Robot
3.2. Reinforcement Learning
- Action Space: An action, at, is a set of parameters that determine the shape and position of the stroke at step t. An agent’s behavior that maps states to actions is a policy function, π. The state, st, is generated, and then the agent generates the action of the next stroke, at, with the stroke parameters. The agent uses the state based on the transition function st+1 = trans (st, at).
- State Space: It consists of all possible information observed in the environment. The state of the painting system includes three parts, namely the target image, the canvas, and the number of steps.
- Reward Design: We define the reward function that allows the agent to evaluate the actions determined by the policy. The reward function is defined as the difference between the current canvas (the loss between the current canvas and the target image) and the next state (the loss between the next state and the target image).
4. Method
4.1. Vision Module
4.2. Exploration Module
4.3. Training
5. Experiments
5.1. Experiment Setup
5.2. Testing in the Simulated World
5.3. Testing in the Real World
6. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Wands, B. Art of the digital age. In Art of The Digital Age; Thames and Hudson: London, UK, 2007; p. 52. [Google Scholar]
- Zhang, A.T.; Backstrom, K.; Prince, R.; Liu, C.; Qian, Z.; Zhang, D.; Zhang, W.J. Robotic dynamic sculpture. IEEE Robot. Autom. Mag. 2014, 21, 96–104. [Google Scholar] [CrossRef]
- Song, J.; Pang, K.; Song, Y.-Z.; Xiang, T.; Hospedales, T.M. Learning to Sketch with Shortcut Cycle Consistency. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 801–810. [Google Scholar]
- Zhou, T.; Fang, C.; Wang, Z.; Yang, Z.; Kim, B.; Chen, Z.; Brandt, J.; Terzopoulos, D. Learning to doodle with deep q networks and demonstrated strokes. arXiv 2018, arXiv:1810.05977. [Google Scholar]
- Zheng, N.; Jiang, Y.; Huang, D. StrokeNet: A Neural Painting Environment. In Proceedings of the International Conference on Learning Representations(ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
- Scalera, L.; Seriani, S.; Gasparetto, A.; Gallina, P. Busker robot: A robotic painting system for rendering images into watercolour artworks. In Proceedings of the Mechanism Design for Robotics: 4th IFToMM Symposium on Mechanism Design for Robotics, Udine, Italy, 11–13 August 2018; pp. 1–8. [Google Scholar]
- Cai, M.; Lin, Y.; Han, B.; Liu, C.; Zhang, W. On a Simple and Efficient Approach to Probability Distribution Function Aggregation. IEEE Trans. Syst. Man Cybern. Syst. 2017, 47, 2444–2453. [Google Scholar] [CrossRef]
- Huang, Z.; Heng, W.; Zhou, S. Learning to paint with model-based deep reinforcement learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 8709–8718. [Google Scholar]
- Zhang, W.J.; Yang, G.; Lin, Y.; Gupta, M.M.; Ji, C. On Definition of Deep Learning, WAC; Skamania Lodge: Stevenson, WA, USA, 2018. [Google Scholar]
- Kalogerakis, E.; Nowrouzezahrai, D.; Breslav, S.; Hertzmann, A. Learning hatching for pen-and-ink illustration of surfaces. ACM Trans. Graph. (TOG) 2012, 31, 1–17. [Google Scholar] [CrossRef]
- Gülzow, J.M.; Paetzold, P.; Deussen, O. Recent developments regarding painting robots for research in automatic painting, artificial creativity, and machine learning. Appl. Sci. 2020, 10, 3396. [Google Scholar] [CrossRef]
- Scalera, L.; Seriani, S.; Gasparetto, A.; Gallina, P. Non-photorealistic rendering techniques for artistic robotic painting. Robotics 2019, 8, 10. [Google Scholar] [CrossRef]
- Levine, S.; Pastor, P.; Krizhevsky, A.; Ibarz, J.; Quillen, D. Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection. Int. J. Robot. Res. 2018, 37, 421–436. [Google Scholar] [CrossRef]
- Xie, N.; Hachiya, H.; Sugiyama, M. Artist agent: A reinforcement learning approach to automatic stroke generation in oriental ink painting. IEICE Trans. Inf. Syst. 2013, 96, 1134–1144. [Google Scholar] [CrossRef]
- Chen, J.X. The evolution of computing: AlphaGo. Comput. Sci. Eng. 2016, 18, 4–7. [Google Scholar] [CrossRef]
- Berio, D.; Calinon, S.; Leymarie, F.F. Learning dynamic graffiti strokes with a compliant robot. In Proceedings of the 2016 I EEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Daejeon, Republic of Korea, 9–14 October 2016; pp. 3981–3986. [Google Scholar]
- Dong, X.; Li, W.; Xin, N.; Zhang, L.; Lu, Y. Stylized Portrait Generation and Intelligent Drawing of Portrait Rendering Robot. DEStech Trans. Eng. Technol. Res. 2018. [Google Scholar] [CrossRef] [PubMed]
- Jia, B.; Fang, C.; Brandt, J.; Kim, B.; Manocha, D. Paintbot: A reinforcement learning approach for natural media painting. arXiv 2019, arXiv:1904.02201. [Google Scholar]
- Xie, N.; Zhao, T.; Tian, F.; Zhang, X.H.; Sugiyama, M. Stroke-based stylization learning and rendering with inverse reinforcement learning. In Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, Buenos Aires, Argentina, 25–31 July 2015. [Google Scholar]
- Liu, S.; Lin, T.; He, D.; Li, F.; Deng, R.; Li, X.; Ding, E.; Wang, H. Paint transformer: Feed forward neural painting with stroke prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 6598–6607. [Google Scholar]
- Nasrat, S.; Kang, T.; Park, J.; Kim, J.; Yi, S.-J. Artistic Robotic Arm: Drawing Portraits on Physical Canvas under 80 Seconds. Sensors 2023, 23, 5589. [Google Scholar] [CrossRef] [PubMed]
- Haarnoja, T.; Zhou, A.; Abbeel, P.; Levine, S. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 1861–1870. [Google Scholar]
- Arjovsky, M.; Chintala, S.; Bottou, L. Wasserstein GAN. arXiv 2017, arXiv:1701.07875. [Google Scholar]
- Gao, F.; Zhu, J.; Yu, Z.; Li, P.; Wang, T. Making robots draw a vivid portrait in two minutes. In Proceedings of the 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Las Vegas, NV, USA, 24 October 2020–24 January 2021; pp. 9585–9591. [Google Scholar]
- Lee, G.; Kim, M.; Lee, M.; Zhang, B.-T. From Scratch to Sketch: Deep Decoupled Hierarchical Reinforcement Learning for Robotic Sketching Agent. In Proceedings of the 2022 International Conference on Robotics and Automation (ICRA), Philadelphia, PA, USA, 23–27 May 2022; pp. 5553–5559. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, Z.; Li, L.; Zhang, T.; Liu, T.; Li, M.; Wang, Z.; Li, Z. Emulating Artistic Expressions in Robot Painting: A Stroke-Based Approach. Appl. Sci. 2024, 14, 5265. https://doi.org/10.3390/app14125265
Wang Z, Li L, Zhang T, Liu T, Li M, Wang Z, Li Z. Emulating Artistic Expressions in Robot Painting: A Stroke-Based Approach. Applied Sciences. 2024; 14(12):5265. https://doi.org/10.3390/app14125265
Chicago/Turabian StyleWang, Zihe, Linzhou Li, Tan Zhang, Tengfei Liu, Ming Li, Zifan Wang, and Zixiang Li. 2024. "Emulating Artistic Expressions in Robot Painting: A Stroke-Based Approach" Applied Sciences 14, no. 12: 5265. https://doi.org/10.3390/app14125265
APA StyleWang, Z., Li, L., Zhang, T., Liu, T., Li, M., Wang, Z., & Li, Z. (2024). Emulating Artistic Expressions in Robot Painting: A Stroke-Based Approach. Applied Sciences, 14(12), 5265. https://doi.org/10.3390/app14125265