自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

將ChatGPT變成Midjourney提示生成器

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

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

選擇提示模板

Midjourney的模板結(jié)構(gòu)性很強(qiáng),所以我們這里使用一下的結(jié)構(gòu):

圖片圖片

讓ChatGPT為我們工作

為了讓ChatGPT工作,我們還要?jiǎng)?chuàng)建ChatGPT的提示,這樣才能讓它幫我們生成Midjourney的提示。

ChatGPT的提示的作用是讓ChatGPT迭代我們的想法并創(chuàng)建與之相關(guān)的圖像提示。我們只對(duì)ChatGPT提出我們的想法和要求,讓ChatGPT為我們工作。

一個(gè)可靠而有效的ChatGPT提示符有兩個(gè)主要成分:指令和上下文

首先我們從上下文開始:我們可以簡(jiǎn)單地將我們的要求變?yōu)榍熬Y、場(chǎng)景和后綴:

#這是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"

上面和下面的限定就是我們對(duì)ChatGPT的要求,ChatGPT會(huì)根據(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.

我們可以簡(jiǎn)單地復(fù)制/粘貼這些提示到Midjourney。以下是其中的一些結(jié)果:

????????????

????????????

以上就是最簡(jiǎn)單ChatGPT的使用技巧,下面我們還可以進(jìn)行更高級(jí)的應(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 的功能,我們?cè)谝郧暗奈恼轮幸沧鲞^介紹,所以可以使用下面方法,讓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就會(huì)返回下面的結(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í),會(huì)得到一下的結(jié)果:

圖片圖片

也就是說,可以直接生成6張圖片,以下是結(jié)果示例:

????????????

圖片圖片

總結(jié)

ChatGPT是通過大量語料庫進(jìn)行訓(xùn)練的大語言模型,而Midjourney則可以生成高質(zhì)量的圖像,通過結(jié)合2者的優(yōu)勢(shì)實(shí)現(xiàn)更加綜合和豐富的內(nèi)容創(chuàng)作。這種綜合的內(nèi)容生成方式能夠通過文字和圖像同時(shí)獲得更多的信息和靈感。

責(zé)任編輯:華軒 來源: DeepHub IMBA
相關(guān)推薦

2023-07-03 09:36:52

模型AI

2015-08-25 11:07:58

2017-07-01 16:02:39

分布式ID生成器

2025-01-23 08:36:27

CSS開發(fā)工具

2010-09-07 16:31:17

SQL語句insert

2021-04-22 21:15:38

Generator函數(shù)生成器

2011-12-23 13:42:05

JavaScript

2024-11-01 15:51:06

2021-07-23 11:24:54

Create Inc開源G代碼生成器

2015-08-25 15:54:17

程序員代碼生成器

2017-09-06 09:26:03

Python生成器協(xié)程

2021-12-04 22:07:44

Python

2024-08-19 00:00:00

表單生成器開發(fā)開源

2023-05-17 16:02:00

CSS工具代碼生成器

2023-01-06 07:52:52

代碼生成器開發(fā)

2022-07-25 10:27:36

背景生成器工具前端

2023-03-08 09:06:24

2022-12-15 08:49:58

ReactQR生成器

2023-05-04 16:24:10

人工智能圖像生成器

2023-02-07 16:11:41

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)