【AI教學】基努李維和荷蘭弟都愛上了貓耳!?Midjourney Character Reference 固定角色長相

2024/03/20閱讀時間約 5 分鐘

Midjourney前些日子終於釋出了Character reference 功能,這下維持AI生成藝術中的角色長相連慣性不再是大問題啦!

根據官方的說明,要使用這個功能很簡單,只要在prompt後面加上 --cref URL,貼上參考角色照片的連結,就可以讓Midjourney產生出來的人物,和你的參考角色長得一模一樣!

raw-image

這個功能對於影像作者來說簡直是大福音,因為以往想要用Midjourney搭配Runway製作AI電影時,最常遇到的問題就是不知道如何固定角色長相。有些創作者使用外掛InsightFace,或是乾脆轉而使用Stable Diffusion,搭配LoRA來解決這個問題。

也因此這次Midjourney推出這個功能讓許多影像工作者都拍手叫好!

使用名人照片作為參考

這邊我以基努李維為範例,上網搜尋到了一張正面臉部清楚,光源也不錯的照片,然後按右鍵複製照片連結

raw-image

接著到Midjourney輸入prompt,把剛剛的照片連結放在Prompt後面:

soft blur editorial shot of a model wearing white cat ears and a pink Lolita dress, riding a bicycle, in Japan street, city pop, neon light, in the style of Vogue --cref https://s.mj.run/iwx4o2Tk2dc --cw 5

登愣,City pop風格的貓娘基哥就出現啦!


也順手做了荷蘭弟的版本:


調整角色風格權重

Midjourney預設的角色權重是100,也就是說它會採用參考圖中人物的長相、髮型、衣著。如果只想讓Midjourney參考角色長相,其他服飾打算用prompt修改的話,可以將權重往下調將,設定為 --cw 0

我們一樣以貓耳基努李維為例子。使用預設權重時,最後完成圖只出現了貓耳,服裝都還是使用參考圖中基哥穿著的西裝:

editorial shot of a model wearing white cat ears and pink Lolita dress, white background, in the style of Vogue --cref https://s.mj.run/iwx4o2Tk2dc
raw-image


接著我們試著將權重下降到--cw 5,粉紅貓娘基哥就出現了!哎手還給我冒青筋!

editorial shot of a model wearing white cat ears and pink Lolita dress, white background, in the style of Vogue --cref https://s.mj.run/iwx4o2Tk2dc --cw 5
raw-image

自創角色

當然不想觸犯肖像權問題的朋友,可能會想要自己設計角色。方法一樣很簡單,請參考我的Prompt:

full body editorial shot of a model standing, 20s Asian, looking directly at the camera, with long side-swept ponytail, wearing nose ring, sport bra, long yellow plaid coat and white denim shorts, wearing white Martin boots, white background, in the style of Vogue

設定好年齡、人種、長相、髮型、穿著,就能產生新角色:

raw-image


接著按右鍵複製圖片連結:

raw-image


將這個連結加入新的prompt之中,就完成了!

我們拿這個新角色來試試看剛剛基哥台北101前夜騎的場景,哇真的是同一套服裝穿到底都不會走鐘:

raw-image


如果只想固定長相的話,也可以生成像是下圖的大頭照,然後再搭配不同的場景,輸入新的Prompt去調整穿著、髮型等等:

raw-image


同一個角色在台北,穿著雨衣,權重設定為 --cw 10

raw-image


最後補上Midjourney官方的Character reference說明:

  • Type -cref URL after your prompt with a URL to an image of a character
  • You can use -cw to modify reference 'strength' from 100 to 0
  • strength 100 (-cw 100) is the default and uses the face, hair, and clothes
  • At strength 0 (-cw 0) it'll just focus on face (good for changing outfits / hair etc)

本文中的prompt 結構參考了aihub.ai Instagram的貼文,他們分享了很多實用的prompt教學,也推薦大家去追蹤: @aihub.ai



✦科技 x 靈性 ✦AI 專區:https://instagram.com/aiwithkiki
留言0
查看全部
發表第一個留言支持創作者!