今天我们介绍几款可以自动生成提示词的插件。所谓智能生成提示词,就是我们只需要输入非常少量的关键字,插件就会根据关键词提示信息帮助我们生成一系列关键字或者句子作为提示词。下面来和我一起看看吧。
一. SD智能提示词工具
2. 网易的AI创意工坊SD Web UI界面正向提示词中提供了智能生词功能。
可以根据输入的关键词,一次具备画面性的5组提示词。
随机选择其中一组(比如第三组)智能生成的提示词看一下效果。
虽然网易AI创意工坊SD工具每天只能生成图片20次,但是智能生词功能可以无限使用。
二. SD Web UI扩展插件promptgen
插件地址:https://github.com/AUTOMATIC1111/stable-diffusion-webui-promptgen
安装完成后,重启SD Web UI。在功能菜单栏多了一个"Promptgen"菜单。
关于插件里面的参数,我们重点关注一下模型参数即可,其他的参数采用默认设置即可。
默认安装的模型有3个。
AUTOMATIC/promptgen-lexart:根据从 lexica.art 抓取的提示对 distilgpt2 进行了 100 轮的微调
AUTOMATIC/promptgen-majinai-safe:根据从 majinai.art 抓取的安全提示对 distilgpt2 进行了 40 轮的微调。
AUTOMATIC/promptgen-majinai-unsafe:针对从 majinai.art 中抓取的不安全提示,对 distilgpt2 进行了 40 轮的微调。
如果我们直接通过扩展插件的安装方式进行安装,可能模型并不会安装到我们的目录下面。在离线状态就无法使用了,我们可以在网站上面下载对应的模型文件到本地,然后上传到插件对应的models目录下。
以promptgen-lexart为例。
模型文件下载地址:https://huggingface.co/AUTOMATIC/promptgen-lexart/tree/main
下载完成后上传到插件对应的模型文件夹下面。
下面我们来体验一下。
输入一个基础关键词:a beautiful girl
选择模型:promptgen-lexart,其他参数我们保持不变。
点击【生成】按钮,最终插件会为我们生成了10组提示词。10组提示词通常对应着不同的风格。
我们挑选其中几组提示词看一下生成图片的效果
第一组提示词:a beautiful girl in the city, hyperrealistic photo, octane render, photo realistic, cinematic, hyperrealism, 8k, highly detailed, high contrast, masterpiece, high quality, vivid, beautiful, trending in artstation, deviantart featured, backlit, smooth, sharp focus, no blur, no dof
第二组提示词:a beautiful girl wearing a red dress by ilya kuvshinov, digital art, detailed face, digital painting, trending on artstation, sharp focus, illustration, art by artgerm and greg rutkowski and magali villeneuve
第三组提示词:a beautiful girl with long white hair and white braids, a beautiful painting by krenz cushart and mucha and makoto shinkai and akihiko yoshida and greg rutkowski and alphonse mucha
第四组提示词:a beautiful girl with a black bob cut, with a black bob cut, white bob cut, and black sweater, in the style of nendoroid
第七组提示词:a beautiful girl with a very big long face, wearing a dress made of white and purple leaves, wearing a dress made of white, wearing a dress made of black, with white embroidered sleeves, made of white embroidered sleeves, full body made of white embroidered sleeves, full shot, digital art, anime style, full body illustration, high quality, highly detailed, hd, dramatic lighting, trending on Artstation, artstationhd, artstationhq, unreal engine, 4k, 8k
从上面我们可以看到,直接使用插件生成的提示词绘制的图片效果都还是相当不错的。
好了,今天的分享就到这里了。对于写提示词烦恼的小伙伴们,今天介绍的工具可以试试哦。
有需要的朋友,可以点击下方卡片免费领取!
篇幅有限,这里就不一一展示了,有需要的朋友可以点击下方的卡片进行领取!