region specification by prompt
概要
ベースとなるプロンプトから指定した文字列が作用している領域をトークンベースで求め、attenntionの調整を行いその領域にのみ追加のプロンプトを作用させる機能
注意※おま環かもしれませんが、Pad prompt/negative prompt to be same lengthを有効にしているとうまく機能しません(おそらくBREAKの一つ前のトークンをマスクに利用しているため)
使用例
regional prompterを有効化し,生成モードはattentionを使用(latentは機能していないっぽい),
タブから Prompt
を選び Use base prompt
を有効化
ベースとなるプロンプトを作成し末尾にADDBASEを追加(以下の画像はすべて同じシード)
positivemasterpiece,dutch angle
outdoors,
1girl,upper body,looking at viewer
ADDBASE
negaivelow quality,civit_nsfw,bad anatomy,monochrome
上記のポジティブプロンプトのうち、プロンプトを追加したい要素を選ぶ(今回は背景をぼかす)
ポジティブプロンプトに以下のように追記
positivemasterpiece,dutch angle
outdoors,
1girl,upper body,looking at viewer
ADDBASE
(bokeh:1.5),outdoors BREAK
(構図を変えたくない場合はこの際に base ratio
や threshold
を上げて調節する)
今回は base ratio
0.4, threshold
0.6
ここからさらに別の要素に手を付けることも可能(以下はその例)
positivedetailed,textured,highres,sfm ADDCOMM
masterpiece,dutch angle,outdoors,1girl,upper body,looking at viewer,eyes,hair ADDBASE
(bokeh,blurry,colorful neon light,lens flare:1.5),dust,cyberpunk,light particles,night,winter,(snow,snowflakes:1.2),outdoors BREAK
breathtaking beuty,perfect anatomy,(smile:0.6),forcus on viewer,1girl BREAK
brown eye,forcus on viewer,eyes BREAK
black bob,sleek hair,cared for,hair BREAK
chester coat,winter clothes,body BREAK
negativelow quality,civit_nsfw,bad anatomy,monochrome ADDCOMM
ADDBASE
BREAK
BREAK
BREAK
messy hair BREAK
mens' clothing,oversized clothes, BRAEK
ちなみにhires.fxにも対応している