Latent space manipulation of stable diffusion model for image generation
Abstract
The creation of the diffusion model was a piece of exciting news in the deep learning community. Millions of people are excited to try the new DALLE 2 AI artist and the state-of-the-art stable diffusion model. One of the greatest advantages of these AI artists is that they can apply many distinct artistic styles to the same image. Nonetheless, the image created using a specific artistic style sometimes seems too strong or too weak. The ability of adjusting the strength of artistic styles of the generated images enables users of this algorithm greater degrees of freedom in terms of creating images of their wishes. Moreover, the ability of adjusting the strength of artistic styles of the generated images can also serve an educational purpose from which users can understand artistic styles in concreate terms. This paper proposed a novel method of adjusting the level of artistic styles of the generated image which utilized the continuity of the latent space of the Contrastive Language-Image Pretraining (CLIP) encoding and calculate the augmenting latent vector. This novel method provides a greater level of tailored manipulability of the generated image.
References
- Ho, J., Jain, A., & Abbeel, P. (2020). Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33, 6840-6851.
- Menick, J., & Kalchbrenner, N. (2018). Generating high fidelity images with subscale pixel networks and multidimensional upscaling. arXiv preprint arXiv:1812.01608.
- Bond-Taylor, S., Leach, A., Long, Y., & Willcocks, C. G. (2021). Deep generative modelling: A comparative review of VAEs, GANs, normalizing flows, energy-based and autoregressive models. arXiv preprint arXiv:2103.04922.
- Flores Garcia, H., Aguilar, A., Manilow, E., Vedenko, D., & Pardo, B. (2021). Deep Learning Tools for Audacity: Helping Researchers Expand the Artist's Toolkit. In 5th Workshop on Machine Learning for Creativity and Design at NeurIPS 2021.
- Elgammal, A., Liu, B., Elhoseiny, M., & Mazzone, M. (2017). Can: Creative adversarial networks, generating "art" by learning about styles and deviating from style norms. arXiv preprint arXiv:1706.07068.
- Creswell, A., White, T., Dumoulin, V., Arulkumaran, K., Sengupta, B., & Bharath, A. A. (2018). Generative adversarial networks: An overview. IEEE signal processing magazine, 35(1), 53-65.
- Rombach, R., Blattmann, A., Lorenz, D., Esser, P., & Ommer, B. (2022). High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 10684-10695.
- Lütkepohl, H. (2013). Vector autoregressive models. In Handbook of Research Methods and Applications in Empirical Macroeconomics, 139-164.
- Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., et, al. (2020). Generative adversarial networks. Communications of the ACM, 63(11), 139-144.
- Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., et, al. (2021). Zero-shot text-to-image generation. In International Conference on Machine Learning, 8821-8831.
- Pound, M (2022) Stable Diffusion Version 2.0. URL: https://colab.research.google.com/drive/1roZqqhsdpCXZr8kgV_Bx_ABVBPgea3lX?usp=sharing