问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

AI绘画效率提升5倍:用ChatGPT来生成提示词

创作时间:
作者:
@小白创作中心

AI绘画效率提升5倍:用ChatGPT来生成提示词

引用
1
来源
1.
https://developer.volcengine.com/articles/7387288371712196649

在AI绘画领域,如何生成高质量的提示词是提升创作效率的关键。本文将介绍三种不同层次的玩法,教你如何利用ChatGPT来优化提示词,从而获得更满意的绘画效果。

入门级玩法:让ChatGPT把中文翻译成英文

对于初学者来说,最简单的玩法就是让ChatGPT将中文关键词翻译成英文。例如,你可以先用中文写出关键词,然后让ChatGPT将其翻译成英文。

使用DreamShaper模型生成的出图效果如下:

其中第三张图片的效果最为满意。

进阶级玩法:让ChatGPT详细描述画面

对于有一定基础的用户,可以让ChatGPT对画面进行更详细的描述。例如,如果你想为一首古诗配图,可以直接将古诗输入给ChatGPT,让它生成更详细的提示词。

以《清平乐·画堂晨起》为例:

《清平乐·画堂晨起》
画堂晨起,来报雪花坠。
高卷帘栊看佳瑞,皓色远迷庭砌。
盛气光引炉烟,素草寒生玉佩。
应是天仙狂醉,乱把白云揉碎。

直接将这首诗作为提示词生成的效果如下:

可以看出,Stable Diffusion对于古诗词的理解还不够到位。这时可以让ChatGPT重新生成更详细的提示词:

traditional Chinese ink painting,
Snowflakes, stove fire, jade pendant, winter, morning,
serene,mysterious,hazy,tranquil,graceful,naive,freehand,vigorous,elegant,bold and unrestrained,ingenious,otherworldly,lively,pure,light and agile,proficient,rigorous,far-reaching,fresh,simple yet refined

生成的图片中,第四张开始展现出一些诗中的意境,但还需要进一步调整才能达到理想的效果。

高级玩法:让ChatGPT变成一个提示词生成器

对于进阶用户,可以让ChatGPT扮演一个专业的提示词生成器角色。这里提供两种不同的方法:

方法一:遵循特定的提示词结构

这种方法要求提示词遵循特定的结构,包括主体描述、场景描述、绘画风格、高质量要求等。例如:

例子1:b&w photo of 42 y.o man in black clothes, bald, face, half body, body, high detailed skin, skin pores, coastline, overcast weather, wind, waves, 8k uhd, dslr, soft lighting, high quality, film grain, Fujifilm XT3
例子2:8k portrait of beautiful cyborg with brown hair, intricate, elegant, highly detailed, majestic, digital photography, art by artgerm and ruan jia and greg rutkowski surreal painting gold butterfly filigree, broken glass, (masterpiece, sidelighting, finely detailed beautiful eyes: 1.2), hdr
例子3:best quality, masterpiece, (realistic:1.2), 1 girl, brown hair, brown eyes,Front, detailed face, beautiful eyes
例子4:ghost inside a hunted room, art by lois van baarle and loish and ross tran and rossdraws and sam yang and samdoesarts and artgerm, digital art, highly detailed, intricate, sharp focus, Trending on Artstation HQ, deviantart, unreal engine 5, 4K UHD image

当你给出一个主题时,ChatGPT会按照上述规则生成3个详细的提示词。例如,对于“一个女孩有两个翅膀”的主题:

方法二:指定详细参数和艺术家风格

这种方法更注重细节的控制,允许用户指定艺术风格、参考艺术家以及关键字的权重。例如:

示例1:a painting of a woman in medieval knight armor with a castle in the background and clouds in the sky behind her, (impressionism:1.1), ('rough painting style':1.5), ('large brush texture':1.2), ('palette knife':1.2), (dabbing:1.4), ('highly detailed':1.5), professional majestic painting by Vasily Surikov, Victor Vasnetsov, (Konstantin Makovsky:1.3), trending on ArtStation, trending on CGSociety, Intricate, High Detail, Sharp focus, dramatic
示例2:Jane Eyre with headphones, natural skin texture, 24mm, 4k textures, soft cinematic light, adobe lightroom, photolab, hdr, intricate, elegant, highly detailed, sharp focus, ((((cinematic look)))), soothing tones, insane details, intricate details, hyperdetailed, low contrast, soft cinematic light, dim colors, exposure blend, hdr, faded
示例3:a portrait of a laughing, toxic, muscle, god, elder, (hdr:1.28), bald, hyperdetailed, cinematic, warm lights, intricate details, hyperrealistic, dark radial background, (muted colors:1.38), (neutral colors:1.2)
示例4:(8k, RAW photo, highest quality), beautiful girl, close up, t-shirt, (detailed eyes:0.8), (looking at the camera:1.4), (highest quality), (best shadow), intricate details, interior, (ponytail, ginger hair:1.3), dark studio, muted colors, freckles

同样以“一个女孩有两个翅膀”为主题,ChatGPT会生成3个详细的提示词。

通过这些高级玩法,你可以更精确地控制AI绘画的输出效果,生成更具艺术性的图像。

© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号