將ChatGPT變成Midjourney提示生成器
已經(jīng)有人總結(jié)過可以讓ChatGPT作為Midjourney圖像生成的模板。在本文中,我們將展示如何根據(jù)個(gè)人用例創(chuàng)建這些提示,這可以讓ChatGPT生成的提示可控性更高。

選擇提示模板
Midjourney的模板結(jié)構(gòu)性很強(qiáng),所以我們這里使用一下的結(jié)構(gòu):
圖片
讓ChatGPT為我們工作
為了讓ChatGPT工作,我們還要創(chuàng)建ChatGPT的提示,這樣才能讓它幫我們生成Midjourney的提示。
ChatGPT的提示的作用是讓ChatGPT迭代我們的想法并創(chuàng)建與之相關(guān)的圖像提示。我們只對ChatGPT提出我們的想法和要求,讓ChatGPT為我們工作。
一個(gè)可靠而有效的ChatGPT提示符有兩個(gè)主要成分:指令和上下文
首先我們從上下文開始:我們可以簡單地將我們的要求變?yōu)榍熬Y、場景和后綴:
#這是Midjourney的命令
/imagine prompt: PREFIX, SCENE, SUFFIX
PREFIX defines the image's medium and style
SCENE defines the content
SUFFIX modulates PREFIX and SCENE在下一步中,就是要將我們將上下文與ChatGPT如何處理信息的指令結(jié)合起來:
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會根據(jù)我們的要求來返回結(jié)果,大概是這樣的:
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.我們可以簡單地復(fù)制/粘貼這些提示到Midjourney。以下是其中的一些結(jié)果:
??????
??????
以上就是最簡單ChatGPT的使用技巧,下面我們還可以進(jìn)行更高級的應(yīng)用
擴(kuò)充思路
因?yàn)镃hatGPT使用了大量的語料庫進(jìn)行訓(xùn)練,所以我們可以讓它幫我我們擴(kuò)充思路,例如下面的提示:
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結(jié)果如下:
/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.結(jié)果如下:
圖片
圖片
優(yōu)化ChatGPT輸出
Midjourney有一個(gè)叫permutation 的功能,我們在以前的文章中也做過介紹,所以可以使用下面方法,讓ChatGPT生成相應(yīng)格式的結(jié)果:
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就會返回下面的結(jié)果:
/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}這樣,在將這個(gè)提示復(fù)制到Midjourney時(shí),會得到一下的結(jié)果:
圖片
也就是說,可以直接生成6張圖片,以下是結(jié)果示例:
??????
圖片
總結(jié)
ChatGPT是通過大量語料庫進(jìn)行訓(xùn)練的大語言模型,而Midjourney則可以生成高質(zhì)量的圖像,通過結(jié)合2者的優(yōu)勢實(shí)現(xiàn)更加綜合和豐富的內(nèi)容創(chuàng)作。這種綜合的內(nèi)容生成方式能夠通過文字和圖像同時(shí)獲得更多的信息和靈感。





























