arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12760cs.MMcs.AIcs.CV
收藏

一种用户友好的生成模型偏好提示框架

A User-Friendly Framework for Generating Model-Preferred Prompts in Text-to-Image Synthesis

Nailei Hei, Qianyu Guo, Zihao Wang, Yan Wang, Haofen Wang, Wenqiang Zhang

AI总结:

本文提出UF-FGTG框架,通过粗细粒度提示数据集和自适应特征提取模块,自动优化用户输入提示以生成更高质量的图像。

摘要:

精心设计的提示在引导文本到图像模型生成令人惊叹的图像方面展现出了潜力。尽管现有的提示工程方法可以提供高层次的指导,但初学者用户由于其输入提示与模型偏好提示之间存在差异,难以通过手动输入提示达到预期结果。为了弥合用户输入行为与模型训练数据集之间的分布差距,我们首先构建了一个新的粗细粒度提示数据集(CFP),并提出了一种新的用户友好的细粒度文本生成框架(UF-FGTG)用于自动提示优化。对于CFP,我们构建了一个新的文本到图像任务的数据集,该数据集结合了粗粒度和细粒度提示,以促进自动化提示生成方法的发展。对于UF-FGTG,我们提出了一种新的框架,可以自动将用户输入提示转换为模型偏好的提示。具体来说,我们提出了一种提示精炼器,能够持续重写提示,使用户能够选择符合其独特需求的结果。同时,我们将图像相关的损失函数整合到文本生成的训练过程中,以生成模型偏好的提示。此外,我们提出了一种自适应特征提取模块,以确保生成结果的多样性。实验表明,我们的方法能够生成比先前最先进的方法更具视觉吸引力和多样性的图像,在六个质量和审美指标上平均提高了5%。

英文摘要:

Well-designed prompts have demonstrated the potential to guide text-to-image models in generating amazing images. Although existing prompt engineering methods can provide high-level guidance, it is challenging for novice users to achieve the desired results by manually entering prompts due to a discrepancy between novice-user-input prompts and the model-preferred prompts. To bridge the distribution gap between user input behavior and model training datasets, we first construct a novel Coarse-Fine Granularity Prompts dataset (CFP) and propose a novel User-Friendly Fine-Grained Text Generation framework (UF-FGTG) for automated prompt optimization. For CFP, we construct a novel dataset for text-to-image tasks that combines coarse and fine-grained prompts to facilitate the development of automated prompt generation methods. For UF-FGTG, we propose a novel framework that automatically translates user-input prompts into model-preferred prompts. Specifically, we propose a prompt refiner that continually rewrites prompts to empower users to select results that align with their unique needs. Meanwhile, we integrate image-related loss functions from the text-to-image model into the training process of text generation to generate model-preferred prompts. Additionally, we propose an adaptive feature extraction module to ensure diversity in the generated results. Experiments demonstrate that our approach is capable of generating more visually appealing and diverse images than previous state-of-the-art methods, achieving an average improvement of 5% across six quality and aesthetic metrics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑