將ChatGPT變成Midjourney提示生成器
已經(jīng)有人總結過可以讓ChatGPT作為Midjourney圖像生成的模板。在本文中,我們將展示如何根據(jù)個人用例創(chuàng)建這些提示,這可以讓ChatGPT生成的提示可控性更高。
選擇提示模板
Midjourney的模板結構性很強,所以我們這里使用一下的結構:
圖片
讓ChatGPT為我們工作
為了讓ChatGPT工作,我們還要創(chuàng)建ChatGPT的提示,這樣才能讓它幫我們生成Midjourney的提示。
ChatGPT的提示的作用是讓ChatGPT迭代我們的想法并創(chuàng)建與之相關的圖像提示。我們只對ChatGPT提出我們的想法和要求,讓ChatGPT為我們工作。
一個可靠而有效的ChatGPT提示符有兩個主要成分:指令和上下文
首先我們從上下文開始:我們可以簡單地將我們的要求變?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如何處理信息的指令結合起來:
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ù)我們的要求來返回結果,大概是這樣的:
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.
結果如下:
圖片
圖片
優(yōu)化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者的優(yōu)勢實現(xiàn)更加綜合和豐富的內容創(chuàng)作。這種綜合的內容生成方式能夠通過文字和圖像同時獲得更多的信息和靈感。