TensorX
返回文献探索

Paper · arXiv 2311.12229

NeuroPrompts: An Adaptive Framework to Optimize Prompts for Text-to-Image Generation

Shachar Rosenman, Vasudev Lal, Phillip Howard

25 upvotesNovember 20, 2023arXiv 预印本
AI 摘要

An adaptive framework automatically enhances text-to-image prompts to improve generation quality using a pre-trained language model and constrained text decoding.

text-to-image diffusion modelsprompt engineeringadaptive frameworkconstrained text decodingpre-trained language modelStable Diffusionimage generation

Abstract

Despite impressive recent advances in text-to-image diffusion models, obtaining high-quality images often requires prompt engineering by humans who have developed expertise in using them. In this work, we present NeuroPrompts, an adaptive framework that automatically enhances a user's prompt to improve the quality of generations produced by text-to-image models. Our framework utilizes constrained text decoding with a pre-trained language model that has been adapted to generate prompts similar to those produced by human prompt engineers. This approach enables higher-quality text-to-image generations and provides user control over stylistic features via constraint set specification. We demonstrate the utility of our framework by creating an interactive application for prompt enhancement and image generation using Stable Diffusion. Additionally, we conduct experiments utilizing a large dataset of human-engineered prompts for text-to-image generation and show that our approach automatically produces enhanced prompts that result in superior image quality. We make our code, a screencast video demo and a live demo instance of NeuroPrompts publicly available.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号