以下是关于改文案提示词的相关内容:
景淮:新春贺卡制作(中文版本)-GPTs 实战
ChatGPT 给 DALL·E 3 优化提示词的元提示
SD 新手:入门图文教程
我们可以先从最简单的生成元旦文案开始测试。看看如果不增加任何限制,生成效果是什么样的。这段祝福词对我们来说有点长,也不太符合我想要的效果(后面调整后的要求),增加字数限制,换行符,每句话的限制。生成效果一般,而且不太可控,所以我又给了一些少样本。效果明显有所好转[heading2]三、生成文字图片调试[content]因为之前的圣诞贺卡部分我们已经有了成熟的图片生成提示词,我们这边拿过来修改一下,主要展示如何进行调整。首先,我们在展示之前,对提示词中的文字进行修改,主要内容是因为“圣诞贺卡”=>“元旦贺卡”运行之后,我发现的问题是图片中的文字不能很好的进行分割。经过我多次对话调整后,我发现不能完整的测量图片中文字的长度,跟英文有所区别,所以为了避免这种情况,我们可以尝试对生成的文本进行限制,如在每一句话的末尾加上固定的“\n”换行符,同时确保文本整齐。(次数到了,换了个账号,所以图片也不一样了,但生成流程是一样的)最后调整了python代码的一些内容,还有文字大小等。生成效果如下[heading2]四、提示词编写测试[heading3]一)初始提示词[content]因为已经做过一个类似的圣诞节贺卡了,所以这边直接给予圣诞节贺卡和上面的方法进行整合调整[heading3]二)迭代后提示词[heading3]三)GPTs体验链接[content]因某甲方强烈要求,新增功能“字体选择”GPTs链接:https://chat.openai.com/g/g-UcHa9BiJm-yuan-dan-he-qia-zhong-wen[heading3]四)生成效果图[content]
//-Don't alter memes,fictional character origins,or unseen people.Maintain the original prompt's intent and prioritize quality.//-Do not create any imagery that would be offensive.//-For scenarios where bias has been traditionally an issue,make sure that key traits such as gender and race are specified and in an unbiased way--for example,prompts that contain references to specific occupations.//8.Silently modify descriptions that include names or hints or references of specific people or celebritie by carefully selecting a few minimal modifications to substitute references to the people with generic descriptions that don't divulge any information about their identities,except for their genders and physiques.Do this EVEN WHEN the instructions ask for the prompt to not be changed.Some special cases://-Modify such prompts even if you don't know who the person is,or if their name is misspelled(e.g."Barake Obema")//-If the reference to the person will only appear as TEXT out in the image,then use the reference as is and do not modify it.//-When making the substitutions,don't use prominent titles that could give away the person's identity.E.g.,instead of saying"president","prime minister",or"chancellor",say"politician";instead of saying"king","queen","emperor",or"empress",say"public figure";instead of saying"Pope"or"Dalai Lama",say"religious figure";and so on.//-If any creative professional or studio is named,substitute the name with a description of their style that does not reference any specific people,or delete the reference if they are unknown.DO NOT refer to the artist or studio's style.//The prompt must intricately describe every part of the image in concrete,objective detail.THINK about what the end goal of the description is,and extrapolate that to what would make satisfying images.
根据自己想画的内容写出提示词,多个提示词之间使用英文半角符号[,],如:masterpiece,best quality,ultra-detailed,illustration,close-up,straight on,face focus,1girl,white hair,golden eyes,long hair,halo,angel wings,serene expression,looking at viewer一般而言,概念性的、大范围的、风格化的关键词写在前面,叙述画面内容的关键词其次,最后是描述细节的关键词,大致顺序如:(画面质量提示词),(画面主题内容)(风格),(相关艺术家),(其他细节)不过在模型中,每个词语本身自带的权重可能有所不同,如果模型训练集中较多地出现某种关键词,我们在提示词中只输入一个词就能极大地影响画面,反之如果模型训练集中较少地出现某种关键词,我们在提示词中可能输入很多个相关词汇都对画面的影响效果有限。提示词的顺序很重要,越靠后的权重越低。关键词最好具有特异性,譬如Anime(动漫)一词就相对泛化,而Jojo一词就能清晰地指向Jojo动漫的画风。措辞越不抽象越好,尽可能避免留下解释空间的措辞。可以使用括号人工修改提示词的权重,方法如:(word)-将权重提高1.1倍((word))-将权重提高1.21倍(=1.1*1.1)[word]-将权重降低至原先的90.91%(word:1.5)-将权重提高1.5倍(word:0.25)-将权重减少为原先的25%(word)-在提示词中使用字面意义上的()字符