Qwen Image Edit 跟 FLUX.1 Kontext 簡直可以說是開源版的Nano Banana了。今天的主要講的是Qwen Image Edit 換臉功能。


Qwen Image Edit 本身是沒法直接將臉部遷移的,所以我們需要搭配特定lora來實現。

lora:BFS - 最佳換臉

備份點: Google Drive 

裡面有兩個版本 

v1是著重於換臉 (保留原始頭部形狀和頭髮,同時轉移臉部特徵和表情)

v2則是換頭,更換整個頭部(包括頭髮和姿勢方向)

至於要選擇哪一個,就看自己的需求。

重要須知:請勿用於非法用途,請遵守相關法律法規!否則後果自負。

測試過程:

使用兩個AI生成的女生作為範例。目標是將圖一(左)的臉部換到圖二(右) 

image.png

在標準的Qwen Image Edit 工作流加載這個Lora

image.png

輸入提示詞

face swap face from Image 1 to Image 2

結果

image.png

進階提示詞:

將影像 1 中的臉部與影像 2 中的臉部交換。只交換臉部而不交換頭髮,與圖像 2 中的膚色相同,與圖像 3 中的姿勢相同

face swap face from Image 1 to Image 2. swap only the face and not the hair, the same skin tone from Image 2, same pose that Image 3


V2的換頭提示詞:

將頭部從影像 1 交換到影像 2

head swap from Image 1 to Image 2

將頭像從圖片 1 換到圖片 2,皮膚完美匹配

head swap from Image 1 to Image 2 with perfect skin match

將影像 1 中的頭部交換到影像 2 中,保留影像 1 中的所有臉部細節和頭髮,與影像 2 的身體自然融合。

Head swap from Image 1 to Image 2, keep all facial details and hair from Image 1, blend naturally with Image 2’s body.

將圖 1 中的臉部與圖 2 中的臉部交換,保留圖 1 中的所有臉部細節和頭髮,與圖 2 的身體自然融合,去除圖 2 中的所有頭髮並用圖 1 中的頭髮替換,並保持與圖 2 相同的表情和頭部比例

head swap face from Image 1 to Image 2, keep all facial details and hair from Image 1, 

blend naturally with Image 2’s body, 

remove all hair of Image 2 and replace by hair from Image 1 and keep the same expression and head proportion as in image 2

換頭效果:權重的話0.8上下 (設定1.0畫面有點問題,不知道是不是兩圖差距過大影響的) 以下是用第一組提示詞

image.png



文章轉載或引用,請先告知並保留原文出處與連結!!(單純分享或非營利的只需保留原文出處,不用告知)

原文連結:
https://blog.aidec.tw/post/qwen-image-edit-2509-face-swap-comfyui
若有業務合作需求,可寫信至: opweb666@gmail.com
創業、網站經營相關內容未來將發布在 小易創業筆記