Flux.1 的专属提示词增强模型来啦!不用费脑,一键扩写提示词!

编写提示词对于听雨来说一直是一个比较费脑子的事情,下班以后的闲暇时间本就不多,还要费脑子在提示词上,让本就不够富裕的脑子更加不堪重负!

所以听雨对于提示词相关的插件都是蛮感兴趣的,毕竟可以让一天紧张工作疲惫不堪的脑子偷个懒,何乐而不为嘞!

之前听雨也介绍了一款随机提示词插件,不过那个有点太过随机了,而且它的原理其实就是把内置的各个分类的关键提示词进行组合,用多了就会出现重复的提示词。

今天我们要介绍的这个模型是专门为 Flux.1 训练的符合 Flux.1 提示词框架的模型,只需要输入一个主题就可以进行扩充。

好了,话不多说,我们直接开整。


我们先来看效果:

先来个最简单的初始提示词:A young woman.

扩充提示词:A close-up shot of a young woman with brown long hair and a black top. Her head tilts slightly to the right, looking left in front of the camera. She carries a black strap on her shoulder and holds a black barbed wire fence in her hand. The background is blurry

提示词再加上在沙滩上:A young woman sitting on the beach.

扩充提示词:A young woman is sitting on the beach. She is wearing a white sleeveless top and blue jeans. Her hair is tied in a ponytail. She looks towards the camera on the left. The sunlight is shining on her face. Behind her, there are waves and a large stone in the water. The sky is blue with cumulus clouds

再来规定在 T 恤上写个 "Lucky":A young woman sits on the beach and the T-shirt says, "Lucky."

扩充提示词:A medium-sized photo of a young woman sitting on the beach. She is wearing a light blue t-shirt with white text that reads' luck '. The t-shirt features a black pattern with a red circle and a black outline. Her left hand is on her knee and her right hand is under her knee. She looks towards the camera on her left. The sunlight shines on her face and body. The sand behind her is wet with small waves

再加个卡通风格:A young woman with a cartoon style sitting on the beach, wearing a T-shirt with the words' lucky 'written on it,

扩充提示词:A detailed digital illustration depicts a young woman sitting on the beach with a strange and happy expression. Her hair is light brown, and she is wearing a white t-shirt with the word "luck" written in black. The beach has waves, rocks, and a small island in the distance. The painting captures a peaceful moment with a blurred background, focusing attention on her

再来看些别的不同主题的提示词增强效果吧:

原始提示词:A strange planet.

扩充提示词:A detailed 3D rendering: an alien world with a mysterious halo, bright yellow planet, and deep blue sky. The scene is shrouded in soft light, and the planet's craters and surface details are clearly visible

原始提示词:retrofuturistic female android tied to a chair, steampunk, gears, detailed mechanical parts, painting by artgerm julie bell Jean Delville

扩充提示词:This is a detailed digital illustration of a futuristic female robot, with the character tied to a chair with a metal frame and complex mechanical components. The outfit features a retro futuristic design, with red and gold tones, a large head, a prominent gear system, multiple gears and pipes, and a background painting by Artgermbell Jean Deville. This artwork showcases a blend of steampunk and industrial elements, with various cables and wires connecting different parts of the character. The style is very detailed and realistic, with a steampunk vibe, and the overall color scheme is dark blue, green, and blue

好了,演示就先到这里吧!

不过如果我们的原始提示词太长的话,或者细节比较多的话,扩充的过程中可能有一些细节会被覆盖,这个应该也是没法避免的。

我们来看看具体如何操作,这个插件还没有收录到 ComfyUI 管理器中,所以需要通过 Git URL 进行安装。

插件地址:GitHub - marduk191/ComfyUI-Fluxpromptenhancer: A Prompt Enhancer for flux.1 in ComfyUI

安装完以后重启,第一次运行工作流的时候会自动下载模型,模型大概 800M 的样子。

插件很简单,只有一个节点「Flux Prompt Enhance」,连参数都没有。

可以看到左边部分是原始提示词,右边部分就是经过插件扩充以后的提示词了。

这里还是要吐槽一下,这个插件太简单了,内部参数都是设定死的,导致相同的原始提示词无法生成不同的提示词,也没法调整想要输出的提示词的长度,这个体验感不是很好。

我们继续来讲工作流,把这个工作流嵌入我们的基础工作流中也很简单,只需要把我们的文本编码器转换为输入,然后用我们这个节点进行连接就好了。

一般听雨还喜欢再加一个可以把中文翻译成英文的节点,直接输入中文就行,不用复制来复制去。

工作流以及模型听雨放在文末的网盘里了,需要的小伙伴自取。

现在可以生成提示词的方法有很多,光随机提示词插件就有很多,也有很多类似的专门训练的提示词增强模型,甚至是借助在线的或者本地部署的大语言模型来优化增强提示词的。

这个模型优点在就是操作简单,占用显存也不多,大概 0.8G,生成的提示词也比较符合 Flux.1 的自然语言格式,增强提示词功能也还不错,可以尝试一下。

好了,今天的分享就到这里喽,感兴趣的小伙伴快去试试吧!

网盘链接:https://pan.quark.cn/s/110f79e95e57

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值