将ChatGPT变成Midjourney提示生成器-环球热闻

时间:2023-07-02 16:04:27 来源: 清一色财经

已经有人总结过可以让ChatGPT作为Midjourney图像生成的模板。在本文中,我们将展示如何根据个人用例创建这些提示,这可以让ChatGPT生成的提示可控性更高。

已经有人总结过可以让ChatGPT作为Midjourney图像生成的模板。在本文中,我们将展示如何根据个人用例创建这些提示,这可以让ChatGPT生成的提示可控性更高。


(资料图片)

选择提示模板

Midjourney的模板结构性很强,所以我们这里使用一下的结构:

图片

让ChatGPT为我们工作

为了让ChatGPT工作,我们还要创建ChatGPT的提示,这样才能让它帮我们生成Midjourney的提示。

ChatGPT的提示的作用是让ChatGPT迭代我们的想法并创建与之相关的图像提示。我们只对ChatGPT提出我们的想法和要求,让ChatGPT为我们工作。

一个可靠而有效的ChatGPT提示符有两个主要成分:指令和上下文

首先我们从上下文开始:我们可以简单地将我们的要求变为前缀、场景和后缀:

#这是Midjourney的命令  /imagine prompt: PREFIX, SCENE, SUFFIX  PREFIX defines the image"s medium and style SCENE defines the content SUFFIX modulates PREFIX and SCENE

在下一步中,就是要将我们将上下文与ChatGPT如何处理信息的指令结合起来:

This is the basic prompt anatomy for image generation with Midjourney:  /imagine prompt: PREFIX, SCENE, SUFFIX  PREFIX defines the image"s medium and style SCENE defines the content SUFFIX modulates PREFIX and SCENE  Create 10 prompts that illustrate the theme "father-son relationship"

上面和下面的限定就是我们对ChatGPT的要求,ChatGPT会根据我们的要求来返回结果,大概是这样的:

1. /imagine prompt: Vintage sepia photograph, A father teaching his son how to ride a bicycle in a park, With a sense of warmth and nostalgia.  2. /imagine prompt: Renaissance oil painting, A king passing his crown to his son in a lavish throne room, With an atmosphere of grandeur and responsibility.  3. /imagine prompt: Animated family movie style, A dad and son building a rocket ship in their backyard, Infused with a sense of adventure and bonding.  4. /imagine prompt: Watercolor sketch, A father and son fishing on a quiet lake as the sun sets, With a serene and tranquil atmosphere.  5. /imagine prompt: Comic book art, A superhero father with his sidekick son saving the day, With dynamic action and a sense of camaraderie.  6. /imagine prompt: Traditional Japanese Ukiyo-e style, A samurai father and his young son practicing martial arts under a cherry blossom tree, With a sense of discipline and tradition.  7. /imagine prompt: 90s sitcom illustration, A dad and son laughing together while attempting to fix a car in a garage, With a vibe of humor and togetherness.  8. /imagine prompt: Modern abstract art, An interpretation of the emotional bond between a father and son, With swirling colors that convey deep connection and love.  9. /imagine prompt: Children’s book illustration, A boy on his father’s shoulders, looking up at the stars, With a sense of wonder and shared curiosity.  10. /imagine prompt: Sci-fi concept art, A father and son in futuristic gear exploring an alien planet, With a sense of discovery and shared adventure.

我们可以简单地复制/粘贴这些提示到Midjourney。以下是其中的一些结果:

图片

图片

以上就是最简单ChatGPT的使用技巧,下面我们还可以进行更高级的应用

扩充思路

因为ChatGPT使用了大量的语料库进行训练,所以我们可以让它帮我我们扩充思路,例如下面的提示:

keep theme, set prefix to "modern abstract art",  scene should contain metaphors (without explanations),  use suffix to implement lens and camera types. list 5 prompts

结果如下:

/imagine prompt: Modern abstract art, An anchor and a soaring kite entwined, With a fisheye lens capturing the circular interplay of stability and freedom.  /imagine prompt: Modern abstract art, A torch casting shadows of successive taller figures, With a tilt-shift lens emphasizing the central flame as the source of growth.  /imagine prompt: Modern abstract art, Rivers of color weaving from a storm to a calm sea, With a wide-angle lens to envelop the viewer in the journey.  /imagine prompt: Modern abstract art, A lighthouse beam morphing into a tapestry of music notes, With a telephoto lens bringing focus to the distant harmony.  /imagine prompt: Modern abstract art, Clock gears turning into an unfolding map, With a macro lens capturing the intricacies of time and adventure"s intertwinement.

结果如下:

图片

图片

优化ChatGPT输出

Midjourney有一个叫permutation 的功能,我们在以前的文章中也做过介绍,所以可以使用下面方法,让ChatGPT生成相应格式的结果:

This is the basic prompt anatomy for image generation with Midjourney:  /imagine prompt: PREFIX, SCENE, SUFFIX  PREFIX defines the image"s medium and style SCENE defines the content SUFFIX modulates PREFIX and SCENE  You can group variations in comma-separated lists like this:  {PREFIX 1, PREFIX 2, PREFIX 3} or {SCENE 1, SCENE 2} or {SUFFIX 1, SUFFIX 2}  Important: when using variations, each item in the list has to be a single word or a phrase without comma (otherwise we"d break the syntax)  ###  Create a prompt that illustrate the theme "father-son relationship".  Use 2 variations for prefix and 3 variations for suffix

这样ChatGPT就会返回下面的结果:

/imagine prompt: {oil painting, watercolor}, a father teaching his son how to  ride a bike in a park, {with a touch of nostalgia, under a warm sunset,  captured in a moment of laughter}

这样,在将这个提示复制到Midjourney时,会得到一下的结果:

图片

也就是说,可以直接生成6张图片,以下是结果示例:

图片

图片

总结

ChatGPT是通过大量语料库进行训练的大语言模型,而Midjourney则可以生成高质量的图像,通过结合2者的优势实现更加综合和丰富的内容创作。这种综合的内容生成方式能够通过文字和图像同时获得更多的信息和灵感。

标签:

精彩推送

美国要求重返教科文组织三问 此番为何又退而复返-世界资讯

新华社北京6月29日电热点问答:美国要求重返教科文组织三问新华社记者

来源:2023.06.30

6月29日基金净值:易方达中证人工智能主题ETF最新净值0.9022,涨0.34%

6月29日,易方达中证人工智能主题ETF最新单位净值为0 9022元,累计净值

来源:2023.06.30

北交所新增受理安瑞升IPO申请 天天热点评

根据北交所公开发行并上市信息,安徽安瑞升新能源股份有限公司(安瑞升

来源:2023.06.30

空间资料(关于空间资料的基本详情介绍) 全球聚看点

1、太空(英语:Space),汉语字典解释是极高的天空。2、位于瑞士日内

来源:2023.06.30

白酒产业进入存量竞争时代

白酒产业进入存量竞争时代

来源:2023.06.30

致辞力求出彩,更须“行胜于言”

□孙君文近日,西南政法大学2023届毕业典礼现场突遇大雨。为了让台下学

来源:2023.06.30

6月29日基金净值:交银品质增长一年混合A最新净值0.9119,跌1.41%-世界时讯

6月29日,交银品质增长一年混合A最新单位净值为0 9119元,累计净值为0

来源:2023.06.30

预售价22.5万元 小鹏G6将于6月29日晚正式上市

日前,小鹏汽车发布消息称,SEPA2 01扶摇技术架构首款战略车型小鹏G6将

来源:2023.06.30

世界微速讯:莫那 福建烫画有限公司(关于莫那 福建烫画有限公司的简介)

1、莫那(福建)烫画有限公司于2019年05月22日成立。法定代表人李俊,公

来源:2023.06.30

新闻快讯

X 关闭

X 关闭

新闻快讯