新聞
模型
產品
keyboard_arrow_down
深度搜索
搜索、讀取並推理直到找到最佳答案。
讀取器
讀取URL或搜索為大模型提供更好的依據。
向量模型
世界一流的多模態多語言向量模型。
重排器
世界一流的重排器,最大限度地提高搜索相關性。
更多的
keyboard_arrow_down
分類器
圖片和文本的零樣本和少樣本分類。
切分器
將長文本切分成塊或詞元。

API 文檔
為您的AI 編程助手 IDE 或大模型自動生成代碼
open_in_new


公司
keyboard_arrow_down
關於我們
聯繫銷售
實習生計劃
加入我們
open_in_new
下載Logo
open_in_new
條款及條件


登錄
login
PromptPerfect Interactive
如何反向工程圖像提示
更多示例
開始逆向工程圖片
技術文章
六月 28, 2024

手工調教圖像提示詞的時代已終結:使用 PromptPerfect 逆向工程 Midjourney 風格的圖像

從龐克愛因斯坦到渦輪鴿子:使用 PromptPerfect Interactive 對圖片進行反向工程,以實時反饋生成 Midjourney 風格的圖像。
Colorful geometric art with blue, purple, and green shapes against a dark background, creating a vibrant, abstract compositio
Alex C-G
Alex C-G • 7 分鐘的讀取量

嘿,你!對,就是你,正在讀這篇文章的你。那個在 Midjourney 和其他圖像生成模型上花費太多時間的提示工程師。這篇文章就是為你準備的。

「我從沒想過 豹子 AI 會吃掉『我的』臉,」投票支持 豹子 AI 吃人臉黨的女人啜泣著說。
💡
向 Adrian Bott 致歉

隨著 AI 吞噬越來越多工作,我們也可以說:

AI 首先來找藝術家,我沒有發聲 – 因為我不是藝術家。然後它來找提示工程師(那些最初用 AI 來推倒藝術家的人),而我被整慘了,因為那是『我的』工作。
💡
向 Martin Niemöller 致歉

沒錯,夥伴。你把 Midjourney 的「mid」(平庸)發揮得淋漓盡致。你的 Stable Diffusion 更像是不穩定混亂。而你的 DALL-E 技能實際上是 CRAP-E(爛透了)。有了 PromptPerfect 這樣的工具,任何人都可以簡單地對現有圖像進行反向工程來生成提示,或在人機互動的過程中獲得即時、逐步的反饋來生成提示。

那麼,讓我們深入了解如何從圖像中反向工程提示,這樣你就能暫時領先那些想吃掉『你的』臉的 AI 豹子...至少現在是這樣。

💡
PromptPerfect 不僅支持 Midjourney 風格的圖像 - 你還可以為 DALL-E 3 和 Stable Diffusion XL 以及許多 LLMs 生成更好的提示。

tagPromptPerfect Interactive

PromptPerfect Interactive 徹底改變了你生成內容和處理複雜任務的方式。它建立在雙重方法之上:

  • 專屬助手:一個能理解你需求並幫助你製作有效提示的 AI 夥伴,使內容生成過程盡可能順暢。
  • 強大的優化器:一個先進的工具,可以微調你的提示以獲得最佳結果,確保你的創意和生產力工作比以往更有效。

PromptPerfect 最近引入了 Midjourney 風格的圖像生成,所以在這篇文章中,我們將使用 Interactive 的助手和優化器從圖像中反向工程提示,然後以 Midjourney 的風格基於這些提示生成新圖像。

tag如何反向工程圖像提示

首先,我們需要一張圖像作為基礎。讓我們使用這張我之前在 Midjourney 生成的龐克風愛因斯坦圖像:

Artistic rendition of Albert Einstein in punk style with colorful hair and stylistic elements set against a blurred, vibrant

為了生成這張圖像,我在 Midjourney 中使用了這個提示:

Realistic photo of Albert Einstein as a punk, retaining his recognizable facial
features, with a brightly colored mohawk, visible tattoos, facial piercings,
and wearing a spiked leather jacket, highly detailed, photorealistic, vibrant
colors, dramatic lighting --ar 4:5 --s 500 --v 6

然後我將圖像上傳到 PromptPerfect 的 Interactive Assistant,並要求它基於該圖像生成提示:

Screenshot of an AI optimizer article with a prompt feature, including a vibrant image of Einstein and styling options.

它返回的提示是:

Colorful punk hairstyle, vibrant pink, orange, and gray hair, edgy jacket with
spikes and colorful geometric patterns, urban background, bokeh lighting,
cyberpunk aesthetic --ar 4:5 --v 6 --s 500

不錯...但缺少了一件事:愛因斯坦本人。由於 Interactive 有基於聊天的界面,我只要告訴它將他加入提示中:

Screenshot of a draft email featuring a creative depiction of Albert Einstein with instructions by Alex Cureton-Griffiths.

然後我得到了:

Albert Einstein with a colorful punk hairstyle in vibrant pink, orange, and
gray hues, wearing an edgy jacket adorned with spikes and colorful geometric
patterns, set against an urban background with bokeh lighting, cyberpunk
aesthetic --ar 4:5 --v 6 --stylize 500

你會注意到這個提示與我用來創建初始圖像的提示不完全相同。這是完全正常的 - 首先因為 AI 生成的圖像包含了超出用來創建它們的提示的特徵。例如,在初始圖像中,愛因斯坦正在向右看,他的翻領上有一抹紅色 - 我在提示中並沒有指定這些,所以如果你從圖像中反向工程提示,你不會得到與開始時相同的提示。第二個原因是圖像分析模型(像許多 AI 一樣)是非確定性的 -- 你可以再次要求它從同一圖像反向工程提示,它可能會捕捉到不同的細節。

無論如何,現在我們有了提示,我們可以點擊「send to Assistant」按鈕來生成四張 Midjourney 風格的圖像:

Text generation interface with a prompt for a stylized Albert Einstein and a 'Send to Assistant' button.
A vibrant depiction of Albert Einstein with a pink, orange, and gray punk hairstyle, wearing a spiked jacket against a bokeh-

再次提醒,你可以看到它與初始圖像不匹配,而且永遠不會完全匹配。只要嘗試將同一個提示再次輸入到圖像生成模型中,你就會得到完全不同的結果 - 就像圖像識別模型一樣,它是非確定性的。

我特別喜歡左上角的圖像。通過點擊它,我可以選擇放大,瞧,這就是我的最終圖像,展現了每個人最喜歡的瘋狂頭髮物理學叔叔:

Colorful portrait of Albert Einstein with graying hair, a mustache, pierced nose, and a spiky jacket against a vivid bokeh ba

當然,你也可以在 Midjourney 本身測試這個提示,你會得到類似的結果:

Collage of four lively portraits of Albert Einstein in vivid outfits and varying hair colors, set against expressive urban sc

tag更多示例

這裡是一些更多的示例。內容順序如下:

  1. 初始提示詞
  2. 在 Midjourney 生成的圖像
  3. 反向工程的提示詞
  4. 在 PromptPerfect Interactive 上生成的 Midjourney 風格圖像

tag渦輪鴿子

abstract, minimalist mesh wireframe of A pigeon::4 , wearing a helmet and
carrying a turbo booster on its back, with a gradient of green, cyan, and blue
lines against a black background, Vanishing point, with minimal detailing::4 ,
--ar 16:9 --s 750 --v 6.0
Futuristic bird with neon pink, blue, and red features against a black background, creating a techno-artistic ambiance.
Futuristic bird with neon lights, intricate feather details, glowing pink and
blue colors, highly detailed, digital art, ethereal and luminous, dark
background, dynamic light streaks, cybernetic effect, hyper-realistic --ar
16:9 --v 6 --stylize 750
Digital art of a mystical red and blue bird with colorful lights and sparks against a gradient background.

tag融化的大腦

melting brain, floating in space, plain black background --ar 16:9 --niji 6
--s 750
Colorful digital art of a melting brain in pink and blue, with vein-like patterns and floating bubbles against a dark backgro
Surreal, melting brain suspended in space, dripping neon pink and blue colors,
abstract, fluid textures, hyper-detailed, futuristic, digital art, cosmic
background with stars, vibrant and glowing, soft lighting --ar 16:9 --v 6
--stylize 750
Abstract depiction of a glowing brain in pink hues against a dark, starry backdrop, evoking a mystical aura.

tag寶萊塢莉亞公主

Bollywood Star Wars scene, close up shot of Princess Leia Organa in traditional
Indian attire, intricate jewelry, holding a defender sporting blaster pistol,
vibrant colors, futuristic elements, sci-fi, dramatic lighting, detailed
background, cinematic, 8K resolution, Unreal Engine, --ar 4:5 --v 6.0
Woman cosplaying as Princess Leia with a blaster, styled hair in buns, in a red-tinted room with hanging lanterns.
Princess Leia, holding a blaster, futuristic sci-fi setting, white robe,
detailed hair buns, dramatic lighting, heroic pose, vibrant colors, cinematic
scene, intricate background with glowing elements --ar 4:5 --s 500 --v 6
Digital painting of a woman styled like Princess Leia in white, holding a blaster, against a colorful bokeh background.

嗯...不得不說,我真的很想念寶萊塢的風格。這就是反向工程的事實 - 有時圖像分析算法看不到人類能看到的東西。經過一些調整(這是一個非常專業的提示詞工程術語),我改進了提示詞如下:

Princess Leia, holding a blaster, futuristic sci-fi setting, dressed in a 
white robe with intricate Indian embroidery, ethnically Indian with 
traditional Indian facial features, detailed hair buns adorned with 
traditional Indian jewelry, dramatic lighting, heroic pose, vibrant colors, 
Bollywood-inspired design, charismatic expression, cinematic scene, intricate 
background with glowing elements and traditional Indian patterns --ar 4:5 --s 
500 --v 6

這給我生成了這張圖片:

Woman in Indian attire with braided hair and jewelry holding a gun, against a luminous background.

這就是互動式優化器真正閃耀的地方。如果只是我自己,我會簡單地在提示詞中加入 bollywood 這個詞。但通過要求優化器 Refine this Midjourney-style prompt to include more Bollywood vibes,PromptPerfect 在提示詞中添加了更多描述性的詞語(traditional Indian patterns 等)。添加更多暗示特定結果的詞語和細節,通常比調整權重和風格更好地影響生成的圖像。

tag柔和色調獎牌

a medal is sitting on a podium against pastel colored confetti, in the style
of simplified forms and shapes, yellow and beige, columns and totems, playful
streamlined forms, nerdcore, contest winner, repetition and pattern --ar 64:39
--s 750 --v 6.0
Celebratory image featuring a bronze medal with a red ribbon and laurel wreath pattern against a rich blue background.
Award medal, intricate laurel design, suspended from a ribbon, celebratory
background, vibrant confetti, glowing lights, high detail, 3D render, soft
lighting, pink and blue color scheme, festive atmosphere --ar 16:9 --s 500
--v 6 --stylize 750
Mysterious medal with silver edges, suspended amidst red particles on a deep blue bokeh background with heart and star-shaped

tag開始逆向工程圖片

想要開始使用 PromptPerfect 來逆向工程圖片提示詞,請註冊並免費試用 PromptPerfect 付費方案七天。在首次登入後 24 小時內訂閱方案可享受 40% 折扣:

PromptPerfect - AI Prompt Generator and Optimizer
Unlock prompt optimization for models like GPT-4, ChatGPT and Midjourney. Generate and refine prompts to perfection, receiving improved outcomes in seconds.
AI Prompt Generator and Optimizer

這是讓你在那些飢餓的 AI 豹群中保持領先的唯一方法!

類別:
技術文章
rss_feed
辦公室
location_on
加利福尼亞州桑尼維爾
710 Lakeway Dr, Ste 200, 桑尼維爾, CA 94085, 美國
location_on
德國柏林(總部)
Prinzessinnenstraße 19-20,10969 柏林,德國
location_on
中國北京
中國北京市海淀區西大街48號6號樓5層
location_on
中國深圳
中國深圳市賦安科技大廈4樓402
搜索底座
深度搜索
讀取器
向量模型
重排器
分類器
切分器
API 文檔
獲取 Jina API 密鑰
速率限制
API 狀態
公司
關於我們
聯繫銷售
新聞
實習生計劃
加入我們
open_in_new
下載Logo
open_in_new
條款
安全
條款及條件
隱私
管理 Cookie
email
Jina AI © 2020-2025.