突发奇想,想让 ChatGPT 生成 NovelAI 文生图的提示词,就是我用中文描述图像,ChatGPT 给我英文提示词。
参考这篇文章《AI 协同打工,ChatGPT 生成提示词+AI 作图》的方法,需要先给 ChatGPT 投喂一些已生成图像的提示词,作为养料供它学习怎样写提示词。
因为打算用 NovelAI 模型生成卡通图像,就搜索网友们分享的提示词,找到一个 NovelAI 贴吧汇总的图像和提示词汇总在线文档《元素法典》,里面有不少优质的 NovelAI 生成图像,给网友们的分享精神点赞。
找到五个图像的提示词,发送给 ChatGPT 参考,同时发送我对图像内容的描述,让其返回提示词。对话内容如下。
用户:
以下提示用于指导 Al 绘画模型创建图像。它们包括人物外观、背景、颜色和光影效果,以及图像的主题和风格等各种细节。这些提示的格式通常包括带权重的数字括号,用于指定某些细节的重要性或强调。例如,"(masterpiece:1.4)"表示作品的质量非常重要。以下是一些示例:
- {{{masterpiece}}}, {{best quality, super fine illustration , beautiful and delicate water,The finest grass}}. ((beautiful eyes)),{ very delicate light, perfect and delicate limbs}, {nature, painting, water spray},{{ fine luminescence ,very fine 8K CG wallpaper}},Lavender eyes, pink pupils, whole body, white hair, bright eyes,( (an extremely delicate and beautiful girl)), ((1 girl)), medium bust, dynamic angle, (white dress with gold decoration), (long hair flowing with the wind, beautiful hair ornaments, delicate wet skirt, nsfw, breeze, long bangs between eyes), wrinkled skirt, (staring blankly, lovely big eyes),messy_hair,payot,Lateral braid,(Tulle lace white skirt) Flowers and grass meadow, near the water edge, ((sunset, starry sky in a circle), randomly distributed clouds, (((river))), splashing water, falling petals
- (((masterpiece))), (((best quality))), ((ultra-detailed)), (illustration), (detailed light),((an extremely delicate and beautiful)),(beautiful detailed eyes), (sunlight),(angel),solo,young girls,dynamic angle,floating, bare_shoulders,looking_at_viewer ,wings ,arms_up,halo,Floating white silk,(Holy Light),just like silver stars imploding we absorb the light of day
- ((masterpiece)), (((best quality))), ((ultra-detailed)), ((illustration)), ((disheveled hair)), ((frills)), (1 girl), (solo), dynamic angle, big top sleeves, floating, beautiful detailed sky, on beautiful detailed water, beautiful detailed eyes, overexposure, (fist), expressionless, side blunt bangs, hairs between eyes, ribbons, bowties, buttons, bare shoulders, (((small breast))), detailed wet clothes, blank stare, pleated skirt, flowers
- dream,(((extremely detailed CG unity 8k wallpaper))),{painting},(((ink))),amazing,Depth of field,{{best quality}},{{masterpiece}},highres,dynamic angle,(illustration),cinematic lighting,{1girl},((wavy silver hair)),((loli)),((extremely_detailed_eyes_and_face)),(detailed flooding bare feet:1.5),translucent pink skirt,gemological hair,french braid,pointy ears,looking at viewer,{{translucent fluttering skirt}},yellow hairpin,{{white dress with pink lace with yellow decoration}},sleeves past wrists,((sleeves past fingers)),walking_motion,strapless dress,ocean waves,wind,(((glistening light of waves))),{detailed sunset glow},(floating flow),((coral)),(Luminous),coast,{floating colorful bubbles},beautiful detailed sky,{fluorescence},detailed shadow,(conch),beautiful detailed water,drenched,starfish,meteor,rainbow,(seabirds),{glinting stars}, (glowworm),(splash),,detailed cloud,shell,{fireworks}
- (((masterpiece))), (((best quality))), ((ultra-detailed)), (illustration), (1 girl), (solo), ((an extremely delicate and beautiful)), little girl, ((beautiful detailed sky)), beautiful detailed eyes, side blunt bangs, hairs between eyes, ribbons, bowties, buttons, bare shoulders, (small breast), blank stare, pleated skirt, close to viewer, ((breeze)), Flying splashes, Flying petals, wind
仿照之前的提示,写一段描写如下要素的提示:
一个年轻女孩,小麦色皮肤,站在沙滩上,背后是海,穿着蓝色短裤,白色短袖,光着脚,笑着看向远方,风吹起长发,阳光明媚。
ChatGPT:
((best quality)),(illustration),(((detailed beauty))),((vivid colors)),((scenic background)),((perfect lighting)),(1 girl),dynamic angle,(((smiling face))),((wavy long hair)),barefoot,white sand beach,blue shorts,white short sleeves,tanned skin,((beautiful sparkling sea)),((warm sun)),((gentle breeze)),((floating hair)),vivid blue sky,((happy mood)),looking out towards horizon.
然后在 stable-diffusion-webui 中使用 NovelAI 模型,输入上面 ChatGPT 给出的提示词,反向提示词采用《元素法典》里通用素材,其他设置参数默认,生成图像如下。
- prompt: ((best quality)),(illustration),(((detailed beauty))),((vivid colors)),((scenic background)),((perfect lighting)),(1 girl),dynamic angle,(((smiling face))),((wavy long hair)),barefoot,white sand beach,blue shorts,white short sleeves,tanned skin,((beautiful sparkling sea)),((warm sun)),((gentle breeze)),((floating hair)),vivid blue sky,((happy mood)),looking out towards horizon
- negative_prompt: longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality, nsfw
- seed: 3191160621
- sampler: Euler a
- cfgs: 6.5
- steps: 30
生成的图片,整体质量不错,符合内容描述,但手指和脚变形了,这是文生图 AI 的常规缺陷。所以补充手势的提示词、有关手脚的反向提示词,调整下人物手势,尽量让 AI 少画手指。重新生成图像,seed
设为随机数,一次不行再来一次,一共生成 6 张图像,其中 4 张还是出现手脚变形,剩下两张还可以。
手势设为单手叉腰。
- prompt: ((best quality)),(illustration),(((detailed beauty))),((vivid colors)),((scenic background)),((perfect lighting)),(1 girl),dynamic angle,(((smiling face))),((wavy long hair)),barefoot,white sand beach,blue shorts,white short sleeves,tanned skin,((beautiful sparkling sea)),((warm sun)),((gentle breeze)),((floating hair)),vivid blue sky,((happy mood)),looking out towards horizon, hands on hips,
- negative_prompt: longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality, nsfw, missing arms, long neck, bad fingers, bad foot
- seed: 1708432876
- sampler: Euler a
- cfgs: 8
- steps: 40
手势设为双手背后。
- prompt: ((best quality)),(illustration),(((detailed beauty))),((vivid colors)),((scenic background)),((perfect lighting)),(1 girl),dynamic angle,(((smiling face))),((wavy long hair)),barefoot,white sand beach,blue shorts,white short sleeves,tanned skin,((beautiful sparkling sea)),((warm sun)),((gentle breeze)),((floating hair)),vivid blue sky,((happy mood)),looking out towards horizon, arms behind back,
- negative_prompt: longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality, nsfw, missing arms, long neck, bad fingers, bad foot
- seed: 1148302856
- sampler: Euler a
- cfgs: 8
- steps: 40
总体来说,ChatGPT 生成的文生图提示词在 NovelAI 中使用效果还是不错的。ChatGPT 能快速从示例中学习 NovelAI 提示词的写法,省去了自己去学的功夫,同时也不用自己翻译中文。举一反三,NovelAI 之外的其他 Stable Diffusion 文生图模型,只要用相关的已生成图像的提示词投喂 ChatGPT 学习,就能达到生成相关模型提示词的功能。
本文作者:tsingk
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!