見出し画像

【ポジティブプロンプト編】Stable Diffusion プロンプトの記述量と順番での品質影響を検証する

プロンプトの入力方法にはいっぱいあります。
重みを重視してなるべく少ないものにする人
強調したいものを盛り盛りに盛る人
ここでは整理することでの画像の変化を確認します


お手本画像のプロンプトを整理する

まずは以下画像の各種レシピを公開

レシピ
Steps: 40, Sampler: DPM++ SDE Karras, CFG scale: 9, Seed: 2197673282, Size: 512x768, Clip skip: 2,

ポジティブプロンプト

(white background:1.2),absurdres, highres, ultra detailed, cel shading, (bold outlines:1.5), flat colors, sharp shadows, graphic style, manga influence, (clean linework:1.4), (1kawaii girl), (big eyes:1.4),(long eyelashes:1.3),(Full round bust:1.2),(Full round breast:1.2),covered breast,(Sweat profusely:1.2),smiling,exhaled air,wet hair,(sweat-drenched:1.2),Curly tips,(perspiration
:1.2)BREAK
,big thighs,thick thighs,thigh-high,(bend forward:1.3),(stooping forward:1.3),sitting on yoga mat,bend forward,collarbone,clavicle bone,Cleavage peeking out from the collar of the clothe
BREAK
Woman in loose training wear stretching,Woman in training clothes stretching,yoga,yoga,yoga,yoga,yoga,yoga,stretching,stretching,stretching,stretching,(loose-fitting clothing training wear:1.2),Tank tops and shirts,
wrinkled waist, shiny_skin,thighs,Skin with shine,(glistening skin:1.4),peel skin, (unrivaled quality:1.3),(masterpiece:1.3), (top quality:1.3), incredibly absurdres,absolutely resolution, extremely detailed, absolutely detailed beautiful face, absurdres, dynamic angle,(layerd design:1.2), slender,ultra cute girl, ultra cute face, ultra detailed eyes, ultra detailed hair, ultra cute, ultra beautiful,creative upcycling, (shiny skin:1.2),

ポジティブプロンプトをいじる

単語の順番を変えてみる

単語の総量は変えず、順番だけ変えてみました。
ちなみに##以降の文章はコメントアウトされ、画像生成に影響を与えません

##品質系
absurdres, highres, ultra detailed,(unrivaled quality:1.3),(masterpiece:1.3), (top quality:1.3), incredibly absurdres,absolutely resolution, extremely detailed, absurdres,ultra beautiful,

##作風
cel shading, (bold outlines:1.5), flat colors, sharp shadows, graphic style, manga influence, (clean linework:1.4),creative upcycling,(layerd design:1.2),

##主題
(1kawaii girl),ultra cute girl,

##顔の特徴
(big eyes:1.4),(long eyelashes:1.3),absolutely detailed beautiful face, ultra cute face, ultra detailed eyes, ultra detailed hair, ultra cute,

##髪型
Curly tips,

##表情
smiling,exhaled air,

##体の特徴
(Full round bust:1.2),(Full round breast:1.2),covered breast,wet hair, slender,
BREAK
big thighs,thick thighs,thigh-high,collarbone,clavicle bone,Cleavage peeking out from the collar of the clothe,wrinkled waist, shiny_skin,thighs,Skin with shine,(glistening skin:1.4),peel skin, (shiny skin:1.2),

##服装
Woman in loose training wear stretching,Woman in training clothes stretching,yoga,yoga,yoga,yoga,yoga,yoga,stretching,stretching,stretching,stretching,(loose-fitting clothing training wear:1.2),Tank tops and shirts,

#体の装飾
(Sweat profusely:1.2),(sweat-drenched:1.2),(perspiration:1.2),

#ポーズ
(bend forward:1.3),(stooping forward:1.3),sitting on yoga mat,bend forward,

#構図
dynamic angle,

#背景
(white background:1.2),

生成結果

若干色の変化が見られますが大きな違いは感じられませんでしたので
編集しやすいこちらの形式のほうがよさそうです

単語を減らす

ネガティブプロンプトから重複している削除します。

##品質系
ultra detailed,(unrivaled quality:1.3),(masterpiece:1.3), (top quality:1.3), incredibly absurdres,absolutely resolution, extremely detailed, ultra beautiful,

##作風
cel shading, (bold outlines:1.5), flat colors, sharp shadows, graphic style, manga influence, (clean linework:1.4),creative upcycling,(layerd design:1.2),

##主題
(1kawaii girl),ultra cute girl,

##顔の特徴
(big eyes:1.4),(long eyelashes:1.3),absolutely detailed beautiful face, ultra cute face, ultra detailed eyes, ultra detailed hair, ultra cute,

##髪型
Curly tips,

##表情
smiling,exhaled air,

##体の特徴
(Full round breast:1.2),covered breast,wet hair, slender,BREAK
thick thighs,Cleavage peeking out from the collar of the clothe,wrinkled waist, (glistening skin:1.4),

##服装
stretching,yoga,(loose-fitting clothing training wear:1.2),Tank tops and shirts,

#体の装飾
(Sweat profusely:1.2)

#ポーズ
(bend forward:1.3),(stooping forward:1.3),sitting on yoga mat,

#構図
dynamic angle,

#背景
(white background:1.2),

生成結果

髪色が変わりましたね。あとは服装がプロンプトに従ってセパレートになりました。
画像品質には大きな違いは出ていませんね。

さらに単語を減らす

さらに似たような単語を削除してみます
具体的には品質系をごっそり削ります。

##品質系
ultra detailed,(masterpiece:1.3), (top quality:1.3) ,absolutely resolution,

##作風
cel shading, (bold outlines:1.5), flat colors, sharp shadows, graphic style, manga influence, (clean linework:1.4),creative upcycling,(layerd design:1.2),

##主題
(1kawaii girl),ultra cute girl,

##顔の特徴
(big eyes:1.4),(long eyelashes:1.3),ultra cute face, ultra detailed eyes, ultra detailed hair,

##髪型
Curly tips,

##表情
smiling,exhaled air,

##体の特徴
(Full round breast:1.2),covered breast,wet hair, slender,BREAK
thick thighs,Cleavage peeking out from the collar of the clothe,wrinkled waist, (glistening skin:1.4),

##服装
(loose-fitting clothing training wear:1.2),Tank tops and shirts,

#体の装飾
(Sweat profusely:1.2)

#ポーズ
(bend forward:1.3),(stooping forward:1.3),sitting on yoga mat,

#構図
dynamic angle,

#背景
(white background:1.2),

生成結果

品質系を落とした分か若干クオリティが落ちました。
重複しない単語は削除せずに重ねたほうが、強く影響受けそうです。

逆に単語を重ねる

特定の単語を大量に重ねてみます
①"(top quality:1.1),(top quality:1.1),(top quality:1.1),(top quality:1.1),(top quality:1.1),(top quality:1.1),",
②"thick thighs,thick thighs,thick thighs,thick thighs,thick thighs,thick thighs,thick thighs,thick thighs,thick thighs,thick thighs,"
③"(glistening skin:1.4),(glistening skin:1.4),(glistening skin:1.4),(glistening skin:1.4),(glistening skin:1.4),(glistening skin:1.4),(glistening skin:1.4),(glistening skin:1.4),"

生成結果

複数回書き込めばやはりある程度強調されて出てきますね。品質系ではわかりやすく出ますけど、全体的にそこまで効果は大きくないかな

強度 or 重ね量

glistening skinで違いを検証

生成結果

強度を上げることに肌のテラテラ感で強まりますね。
複数回書いても同様効果ですが、全体的に崩れてきているので
特別な理由がなければ、強度を高めたほうが品質は上がりそうです。

まとめ

今回の検証結果をまとめると、以下の通りです

  • 単語を羅列しても、ある程度のまとまりで整理しても大きな違いはない

  • 同じ意味が重複するものは省略しても品質低下はない

  • 逆に重複しない単語は複数入れたほうが良い場合がある

  • 同じ単語を重ねると強調はできるが、品質低下するので強度を上げたほうが良い

おまけ

ネガティブを同様に整理して複数パターンで入力するとこんな感じに変化します。

どれがお好みですか? ぜひ教えてください!

この記事が気に入ったらサポートをしてみませんか?