AI知识库

53AI知识库

学习大模型的前沿技术与行业应用场景


提示词工程魅力时刻:一个prompt达到照片级效果
发布日期:2024-10-15 22:35:05 浏览次数: 1527 来源:向鱼aigc


提示词工程又一魅力时刻!!!

推特上有作者发现在使用FLUX1.1的时候在prompt中加入类似于“IMG_1018.CR2”,图片的真实性会大大提高 无论是人物还是风景都能达到照片级别的效果

在提示词中模仿相机的文件命名,IMG+任意编号+相机原始文件格式

FLUX1.1 Pro 代号为“蓝莓”,黑暗森林团队(Black Forest Labs)在10月2日发布,在图像生成速度和质量上都取得了显著提升。与前代 FLUX1 Pro 相比,FLUX1.1 Pro 的生成速度提高了六倍,同时在图像质量、提示遵循度和多样性方面也有所改进 。

目前FLUX1.1 pro可以在togetherai上免费使用

网站链接:https://browser.com/?Url=https://api.together.ai/(链接错了见评论区)

以下示例图均为左边正常提示词,右边为加了“IMG_1018.CR2”

所有图片均为1024*768直出无任何后期处理,说实话即使提示词中没有加“IMG_1018.CR2”每张图片还是很逼真,不愧是FLUX1.1pro,分不出来根本分不出来

睡觉的小猫

a sleeping cat

站在树枝上的小鸟

Little bird sings saddest song, far too young for injured tone, strikes the heart like felted hammers, starring whispers through the pasture, little bird just say the word, the world will hear you little bird

阿尔卑斯的秋景

the picturesque autumn alps, green meadows and colorful trees are reflected on the clear water under the cloudy sky, high resolution, canon eos style camera. beautiful mountains and waters, picturesque scenery, colorful fallen leaves, colorful reflections in the water, mirror lake, residential houses by mountains and forests, colorful autumn leaves

女性肖像

A cinematic portrait of a young woman with long, wavy brown hair smiling warmly towards the camera, she is wearing a light, delicate, sleeveless dress with thin straps, the lighting in the scene is a rich mix of warm tones—deep oranges, soft reds, and subtle hints of pink—creating a vibrant yet intimate atmosphere that suggests a lively evening event, such as a wedding or a sophisticated party, the background is filled with softly blurred figures, creating a bokeh effect with round, diffused lights hanging in the distance, enhancing the depth and adding a dreamy quality to the image, the woman is captured in a slightly angled pose, with her body turned partially to the side, her right shoulder is closer to the camera, creating a dynamic perspective, her chin is slightly lifted, accentuating her jawline, and her head is tilted gently to her left, adding a playful yet elegant touch to her demeanor, her smile is wide and genuine, with her lips softly parted, exuding warmth and approachability, her eyes are bright and full of life, capturing the viewer’s attention with a sparkle that suggests joy and contentment, her hair cascades naturally over her shoulders, with soft waves framing her face, the lighting casts a soft glow on her skin, which is smooth and radiant, the slightly low angle of the shot adds to the sense of confidence and poise in her posture, the background is softly out of focus, with a bokeh effect occupying about 80% of the space, allowing the main subject to stand out while the figures behind her remain abstract, contributing to the overall sense of depth and warmth in the composition, The background showcases a meticulously crafted bokeh effect, occupying around 80% of the background space, with the blur strength set to a medium-high level, creating a smooth, creamy texture that softly dissolves the details of the figures behind her. The bokeh lights are a mixture of warm tones—primarily soft oranges and reds—adding to the intimate atmosphere of the scene

甚至提示词中我们除了“IMG_1018.CR2”外什么都不写,也能够生成这种逼真的由佳能相机拍摄的图片

当然FLUX1.1 pro目前暂未开源(预计一时半会也不会开源)只能通过调用api的形式使用,这里还是以大家最常用的FLUX dev作为示范

我就不解读了大家自己看吧,左边为正常出图,右边加了“IMG_1018.CR2”,分不清根本分不清,太真实了,以至于我不确定IMG_1018.CR2是否发挥了作用以及发挥了多少作用。。。

a sleeping dog in the park

不过在提示词较短的情况下,加了IMG_1018.CR2出图质量反倒变差,玄学。。。

既然这种提示词书写方式适用于FLUX,接下来我们再测试一下AI绘画领域的另一个扛把子Midjourney6.1的表现

在其他参数保持一致的情况下,仅改变提示词

一直觉得Midjourney对于真实风格人物的照片效果很一般,提示词中加上“IMG_1018.CR2”效果勉强可以接受,但是跟FLUX还是没法比

依旧是除了“IMG_1018.CR2”外什么都不写

我TM,真实的离谱,必须单独拎出来给大家看看,这跟照片有什么区别。。。

特别是第一张亚洲小女孩这张我真的爱了,扩一下图拿来做封面~

至于原理的话,因为我并不是专门研究提示词工程的,让我来GPT一下

其实我认为主要原因还是前面两点,在FLUX训练的过程中训练集有非常多类似文件名的由相机拍摄的高质量真实照片,就像lora的触发词那样,在提示词中加入特定相机文件名,会触发摄影相关的特征。(有懂的提示词大佬也可以评论区解释一下

这让我想起了之前调教ChatGPT的时候,习惯性的会在提示词中加上“完成之后我会给你20美金作为小费”“深呼吸,一步一步思考”“如果你失败了会有200个无辜老奶奶去世”很玄学,但是有些时候真的有用(不过现在的GPT o1已经不需要了)

我是向鱼,一个对AI绘画、人工智能有强烈兴趣的00后大学生!如果你对我的文章内容感兴趣,请帮忙点赞、收藏、转发,十分感谢!

也欢迎大家加我微信一起交流学习,备注加群拉你进“国内最纯粹、含金量最高的”AI交流群之一~


53AI,企业落地应用大模型首选服务商

产品:大模型应用平台+智能体定制开发+落地咨询服务

承诺:先做场景POC验证,看到效果再签署服务协议。零风险落地应用大模型,已交付160+中大型企业

联系我们

售前咨询
186 6662 7370
预约演示
185 8882 0121

微信扫码

与创始人交个朋友

回到顶部

 
扫码咨询