[AI]用LatentCouple與ComposableLora來做貼貼

作者: clothg34569 (提拉米蘇冰淇淋)   2023-03-06 21:48:12
ControlNet AI版已經有就不額外介紹了
這次主角是這兩個
https://github.com/opparco/stable-diffusion-webui-two-shot
https://github.com/opparco/stable-diffusion-webui-composable-lora
最近蠻熱門的主題
https://i.imgur.com/efpO5Ji.png
能像這樣對圖片中的區塊分區Diffusion
像這個分三區 那關鍵字就換行之後用AND隔開
例如
2girls
AND silver hair
AND black hair
這樣使用
而ComposableLora則是以AND隔開Lora作用範圍
例如2girls AND <lora:a:0.8>, silver hair AND <lora:b:0.8>, black hair
兩者可以同時作用
簡單介紹完之後就是使用例子了
首先是不套Lora的
一開始用Prompt配合Latent Couple生線稿
rough sketch,outline, (monochrome), 2girls hugging, swoop, long white hair,
(empty white background)
AND rough sketch,outline, (monochrome), 2girls hugging, (flat breasts
loli:1.3), (long white chemise:1.3), swoop, bare shoulder, bare neck, long
white hair, smiling,(empty white background), (rough sketch,outline:1.2),
(monochrome:1.4)
AND rough sketch,outline, (monochrome), 2girls hugging, (big breasts
lady:1.2), (long white chemise:1.3), bare shoulder, bare neck, long white
hair, close mouth, (empty white background), (rough sketch,outline:1.2),
(monochrome:1.4)
https://i.imgur.com/yHiLnda.png
可以看到一次選多個區域的話
divisions 用1:5切成1*5的Array
選取時用0:0-2這樣選取左邊40%的空間
第一步結果
https://i.imgur.com/raGvpXz.png
再來丟進ControlNet
https://i.imgur.com/yVLiNnp.png
得到線稿
第二步上色+一些細節
Prompt:
rough sketch,outline, (monochrome), 2girls hugging, swoop, long hair, (empty
white background)
AND rough sketch,outline, (monochrome), 2girls hugging, (flat breasts
loli:1.3), (long white chemise:1.3), swoop, bare shoulder, bare neck, long
(white:1.2) hair, smiling,(empty white background), (rough
sketch,outline:1.2), (monochrome:1.4)
AND rough sketch,outline, (monochrome), 2girls hugging, (big breasts
lady:1.2), (long white chemise:1.3), bare shoulder, bare neck, long
(black:1.2) hair, close mouth, (empty white background), (rough
sketch,outline:1.2), (monochrome:1.4)
AND (blue eyes:1.3)
AND (red eyes:1.3)
https://i.imgur.com/gw2ulXK.png
這裡將整張圖片分五步製作
其中有使用
https://github.com/Zuntan03/LatentCoupleHelper
來幫忙選擇區域
也可以使用AI版上那篇分享可能更好
https://www.ptt.cc/bbs/AI_Art/M.1677946780.A.6EF.html
成品:
https://i.imgur.com/LB5nJfY.png
https://i.imgur.com/6nIhhmd.png
https://i.imgur.com/LplUhCA.png
https://i.imgur.com/Qscx44L.png
還有一張我很喜歡但是手爛掉的
https://i.imgur.com/RhYbLfx.png
自己做貼貼+撞奶很簡單對吧 :)
再來是使用Lora的簡單例子
一樣先Prompt生構圖
https://i.imgur.com/E0XnYGA.png
https://i.imgur.com/MdvgQlI.png
ControlNet
Prompt:
symmetrical,straight-on, solo, 1girl sitting on the floor, feet apart, empty
white background
AND <lora:re0_emilia:0.8> , 1girl sitting on the
floor, (purple eyes),masterpiece, empty white background
AND <lora:re0_echidna:0.8> , 1 echidna (re zero)
sitting on the floor, black dress, black eyes,masterpiece, empty white
background
AND masterpiece, empty white background
https://i.imgur.com/0fXpcha.png
Latent Couple簡單的設定
https://i.imgur.com/IObxYny.png
結果圖
也能做出這樣把兩個角色貼再一起(物理)的圖
以上就是LatentCouple和ComposableLora的簡單介紹
一起來使用吧 :)
另外用這個要注意一下生一張圖時間會變很久...
作者: IHateNMR (吃飽就睡睡不飽)   2023-03-06 22:15:00
優文,我原本以為只能生成兩個不互動的角色
作者: gR7P4zXH (tpn7gpdx)   2023-03-06 23:18:00
uuuuuu文
作者: lastphil (おやすミルキィ)   2023-03-07 00:12:00
學習學習

Links booklink

Contact Us: admin [ a t ] ucptt.com