链载Ai

标题: 提示词工程魅力时刻:一个prompt达到照片级效果 [打印本页]

作者: 链载Ai    时间: 7 小时前
标题: 提示词工程魅力时刻:一个prompt达到照片级效果

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

推特上有作者发现在使用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,分不出来根本分不出来

睡觉的小猫

asleepingcat

站在树枝上的小鸟

Littlebirdsingssaddestsong,fartooyoungforinjuredtone,strikestheheartlikefeltedhammers,starringwhispersthroughthepasture,littlebirdjustsaytheword,theworldwillhearyoulittlebird

阿尔卑斯的秋景

thepicturesqueautumnalps,greenmeadowsandcolorfultreesarereflectedontheclearwaterunderthecloudysky,highresolution,canoneosstylecamera.beautifulmountainsandwaters,picturesquescenery,colorfulfallenleaves,colorfulreflectionsinthewater,mirrorlake,residentialhousesbymountainsandforests,colorfulautumnleaves

女性肖像

Acinematicportraitofayoungwomanwithlong,wavybrownhairsmilingwarmlytowardsthecamera,sheiswearingalight,delicate,sleevelessdresswiththinstraps,thelightinginthesceneisarichmixofwarmtones—deeporanges,softreds,andsubtlehintsofpink—creatingavibrantyetintimateatmospherethatsuggestsalivelyeveningevent,suchasaweddingorasophisticatedparty,thebackgroundisfilledwithsoftlyblurredfigures,creatingabokeheffectwithround,diffusedlightshanginginthedistance,enhancingthedepthandaddingadreamyqualitytotheimage,thewomaniscapturedinaslightlyangledpose,withherbodyturnedpartiallytotheside,herrightshoulderisclosertothecamera,creatingadynamicperspective,herchinisslightlylifted,accentuatingherjawline,andherheadistiltedgentlytoherleft,addingaplayfulyeteleganttouchtoherdemeanor,hersmileiswideandgenuine,withherlipssoftlyparted,exudingwarmthandapproachability,hereyesarebrightandfulloflife,capturingtheviewer’sattentionwithasparklethatsuggestsjoyandcontentment,herhaircascadesnaturallyoverhershoulders,withsoftwavesframingherface,thelightingcastsasoftglowonherskin,whichissmoothandradiant,theslightlylowangleoftheshotaddstothesenseofconfidenceandpoiseinherposture,thebackgroundissoftlyoutoffocus,withabokeheffectoccupyingabout80%ofthespace,allowingthemainsubjecttostandoutwhilethefiguresbehindherremainabstract,contributingtotheoverallsenseofdepthandwarmthinthecomposition,Thebackgroundshowcasesameticulouslycraftedbokeheffect,occupyingaround80%ofthebackgroundspace,withtheblurstrengthsettoamedium-highlevel,creatingasmooth,creamytexturethatsoftlydissolvesthedetailsofthefiguresbehindher.Thebokehlightsareamixtureofwarmtones—primarilysoftorangesandreds—addingtotheintimateatmosphereofthescene

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

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

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

asleepingdoginthepark

不过在提示词较短的情况下,加了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 (https://www.lianzai.com/) Powered by Discuz! X3.5