EmotiCrafter: Text-to-Emotional-Image Generation based on Valence-Arousal Model
Shengqi Dang, Yi He, Long Ling, Ziqing Qian, Nanxuan Zhao, Nan Cao
TL;DR
EmotiCrafter tackles continuous emotional control in text-to-image generation by embedding continuous Valence-Arousal values into textual prompts and injecting them into a diffusion backbone. The approach introduces an Emotion-Embedding Network that maps $V$ and $A$ into prompt features and fuses them with Stable Diffusion XL via cross-attention, guided by a density-weighted loss to balance uneven V-A sampling. Empirical results show precise emotion-content alignment, superior continuity over baselines and GPT-4+SDXL, and meaningful user-study gains, advancing affective content creation. The work provides methodological innovations (V-A encoding, 12-block Emotion Injection Transformer, KDE-based loss) and a training dataset, with implications for fine-grained, emotionally aware image generation in practical applications.
Abstract
Recent research shows that emotions can enhance users' cognition and influence information communication. While research on visual emotion analysis is extensive, limited work has been done on helping users generate emotionally rich image content. Existing work on emotional image generation relies on discrete emotion categories, making it challenging to capture complex and subtle emotional nuances accurately. Additionally, these methods struggle to control the specific content of generated images based on text prompts. In this work, we introduce the new task of continuous emotional image content generation (C-EICG) and present EmotiCrafter, an emotional image generation model that generates images based on text prompts and Valence-Arousal values. Specifically, we propose a novel emotion-embedding mapping network that embeds Valence-Arousal values into textual features, enabling the capture of specific emotions in alignment with intended input prompts. Additionally, we introduce a loss function to enhance emotion expression. The experimental results show that our method effectively generates images representing specific emotions with the desired content and outperforms existing techniques.
