arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.12059cs.CVcs.LG
收藏

操控Stable Diffusion提示词的嵌入向量

Manipulating Embeddings of Stable Diffusion Prompts

Leipzig University(莱比锡大学);University of Kassel(卡塞尔大学)

Niklas Deckers, Julia Peters, Martin Potthast

AI总结:

该研究针对文生图模型提示词工程操控精度有限的问题,提出基于梯度传递直接操控Stable Diffusion提示词嵌入的方法,开发三类实用交互工具,实现更细粒度的定向图像控制,用户研究验证了方法的易用性与生成效果优势。

摘要:

提示词工程仍是生成式文生图模型的用户对生成图像进行定向操控的主要方式。基于将模型视为连续函数、并在图像空间与提示词嵌入空间之间传递梯度的思路,我们提出并分析了一种直接操控提示词嵌入向量而非提示词文本的新方法。随后我们推导了三种支持用户进行图像生成的实用交互工具:(1)对定义在图像空间中的指标(例如衡量图像风格的指标)进行优化。(2)允许用户沿着一组“邻近”提示词嵌入的方向在图像空间中导航,以此支持用户完成创意任务。(3)修改提示词的嵌入向量,使其包含用户在某个特定种子中看到、但难以在提示词中描述的信息。与提示词工程相比,用户驱动的提示词嵌入操控能够实现更细粒度、更具针对性的控制,且能整合用户的意图。我们的用户研究表明,用户认为我们的方法没那么繁琐,且生成的图像通常更受青睐。

英文摘要:

Prompt engineering is still the primary way for users of generative text-to-image models to manipulate generated images in a targeted way. Based on treating the model as a continuous function and by passing gradients between the image space and the prompt embedding space, we propose and analyze a new method to directly manipulate the embedding of a prompt instead of the prompt text. We then derive three practical interaction tools to support users with image generation: (1) Optimization of a metric defined in the image space that measures, for example, the image style. (2) Supporting a user in creative tasks by allowing them to navigate in the image space along a selection of directions of "near" prompt embeddings. (3) Changing the embedding of the prompt to include information that a user has seen in a particular seed but has difficulty describing in the prompt. Compared to prompt engineering, user-driven prompt embedding manipulation enables a more fine-grained, targeted control that integrates a user's intentions. Our user study shows that our methods are considered less tedious and that the resulting images are often preferred.

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

↑