Abstract
Procedural Content Generation (PCG) in games has grown in popularity in recent years, with Generative Adversarial Networks (GANs) providing a promising option for applying PCG for game artistic asset generation. In this paper, we introduce a model that uses GANs and the YUV colour encoding system for automatic colouring of game assets. In this model, conditional GANs in Pix2Pix architecture are chosen as the main structure and the YUV colour encoding system is used for data preprocessing and result visualisation. We experimented with parameter settings (number of epochs, activation functions, optimisers) to optimise output. Our experimental results show that the proposed model can generate evenly coloured outputs for both small and larger datasets.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Abadi, M., et al.: Tensorflow: a system for large-scale machine learning. In: OSDI, vol. 16, pp. 265–283 (2016)
Baker, C., Schleser, M., Molga, K.: Aesthetics of mobile media art. J. Media Pract. 10(2–3), 101–122 (2009)
Biswas, S., Rohdin, J., Drahanskỳ, M.: Synthetic retinal images from unconditional GANs. In: 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), pp. 2736–2739. IEEE (2019)
Bradski, G.: The OpenCV library. Dr. Dobb’s J. Softw. Tools 25(11), 120–123 (2000)
Chollet, F., et al.: Keras (2015). https://github.com/fchollet/keras
Folmer, E.: Component based game development – a solution to escalating costs and expanding deadlines? In: Schmidt, H.W., Crnkovic, I., Heineman, G.T., Stafford, J.A. (eds.) CBSE 2007. LNCS, vol. 4608, pp. 66–73. Springer, Heidelberg (2007). https://doi.org/10.1007/978-3-540-73551-9_5
Hendrikx, M., Meijer, S., Van Der Velden, J., Iosup, A.: Procedural content generation for games: a survey. ACM Trans. Multimedia Comput. Commun. Appl. (TOMM) 9(1), 1–22 (2013)
Horsley, L., Perez-Liebana, D.: Building an automatic sprite generator with deep convolutional generative adversarial networks. In: 2017 IEEE Conference on Computational Intelligence and Games (CIG), pp. 134–141. IEEE (2017)
Isola, P., Zhu, J.Y., Zhou, T., Efros, A.A.: Image-to-image translation with conditional adversarial networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1125–1134 (2017)
Lan, H., Initiative, A.D.N., Toga, A.W., Sepehrband, F.: Three-dimensional self-attention conditional GAN with spectral normalization for multimodal neuroimaging synthesis. Magn. Reson. Med. 86(3), 1718–1733 (2021)
Oliphant, T.: NumPy: A Guide to NumPy. Trelgol Publishing, USA (2006). http://www.numpy.org/. Accessed 5 Oct 2021
Pathak, D., Krahenbuhl, P., Donahue, J., Darrell, T., Efros, A.A.: Context encoders: feature learning by inpainting. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2536–2544 (2016)
Serpa, Y.R., Rodrigues, M.A.F.: Towards machine-learning assisted asset generation for games: a study on pixel art sprite sheets. In: 2019 18th Brazilian Symposium on Computer Games and Digital Entertainment (SBGames), pp. 182–191. IEEE (2019)
Wang, G., Fu, R., Sun, B., Lv, J., Sheng, T., Tan, Y.: Comparison of two types of color transfer algorithms in YUV and lab color spaces. In: AOPC 2017: Optical Sensing and Imaging Technology and Applications, vol. 10462, p. 104622V. International Society for Optics and Photonics (2017)
Wen, X., Pan, Z., Hu, Y., Liu, J.: Generative adversarial learning in YUV color space for thin cloud removal on satellite imagery. Remote Sens. 13(6), 1079 (2021)
Wu, M., et al.: Remote sensing image colorization using symmetrical multi-scale DCGAN in YUV color space. Vis. Comput. 37, 1–23 (2020)
Zeng, H., Zhang, X., Yu, Z., Wang, Y.: SR-ITM-GAN: learning 4K UHD HDR with a generative adversarial network. IEEE Access 8, 182815–182827 (2020)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this paper
Cite this paper
Jiang, Z., Sweetser, P. (2022). GAN-Assisted YUV Pixel Art Generation. In: Long, G., Yu, X., Wang, S. (eds) AI 2021: Advances in Artificial Intelligence. AI 2022. Lecture Notes in Computer Science(), vol 13151. Springer, Cham. https://doi.org/10.1007/978-3-030-97546-3_48
Download citation
DOI: https://doi.org/10.1007/978-3-030-97546-3_48
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-97545-6
Online ISBN: 978-3-030-97546-3
eBook Packages: Computer ScienceComputer Science (R0)