顔の前に剣を掲げるプロンプト - Stable Diffusion

顔の前に剣を掲げるプロンプトを検討します。

やりたいこと

今回P(プロデューサー)から指定されたイメージが下図です。
キャラクターがいて顔の前に剣をかざす構図の画像を作成したいとのことです。 顔の一部に剣が重なる構図は、AIでの生成でも苦手そうな印象があります。

プロンプトのみで生成

まずは、プロンプトのみで生成を試してみます。(期待薄ですが)

次のプロンプトで生成します。
Prompt
Prompt:1girl, cute girl, from front, (hold sword in front face:1.1)
Negative prompt:worst quality, low quality
Animagine XL v3.1での生成結果は下図です。かなりの低確率ですが、意図した構図で生成できている画像があります。


プロンプトを変更してみます。
Prompt
Prompt:masterpiece, 1girl, cute girl, from front, (hold sword in front face:1.1), white background
Negative prompt:worst quality, low quality
Animagine XL v3.1での生成結果は下図です。こちらも低確率ですが、意図した構図で生成できている画像があります。


16回に1回程度で意図した構図が生成できる感じです。

プロンプト検討

意図したイメージに近い画像をMidjourneyのDescribeに入力してプロンプトの検討をします。
Describeコマンドの詳細はこちらの記事を参照してください。
Describe output
anime style girl with white hair and pink eyes wearing black mask holding sword, in an anime art style, cute
Describe output
A cute anime girl with white hair and pink eyes wearing an oversized black mask holding up her sword. She has light grey in the Genshin Impact artstyle.
Describe output
anime girl with white hair and pink eyes wearing a black mask holding a sword, in an anime style, genshin impact character art
Describe output
A cute anime girl with white hair and pink eyes wearing an oversized black tunic. She is holding up her sword which has red highlights on the blade. Her face is covered in the style of a mask that covers just one eye, in an anime style.

Describe output
A cute anime girl with short black hair and purple eyes, wearing dark and holding up her glowing white sword in the style of Genshin Impact. Anime aesthetic.
Describe output
A cute anime girl with short black hair and purple eyes, wearing dark and holding up her glowing white sword in the style of Granblue Fantasy.
Describe output
A cute girl with purple eyes and black hair, wearing dark and holding up her sword. In an anime style. In the background is a white light shining on it in an anime style. The illustration of only one character's face in front view, in the style of Genshin Impact art.
Describe output
A cute girl with purple eyes and black hair holding up her sword in the style of anime, full body portrait with a cute face, wearing dark in the anime art style. The character design is inspired by Genshin Impact with a game background, white light and white gradient. The style has a dark blue color scheme and dark cartoon style suitable for a wallpaper.

"holding up sword" という言い回しが良さそうです。

画像生成

プロンプトを見直し、ControlNetを利用して画像生成をします。
ControlNetの入力画像として下図を準備します。


ControlNetはSketchを利用します。モデルは "t2i-adapter_xl_sketch" (ハッシュ値 ff9b22fb) を利用します。 Control Weight を0.55としています。


以下のプロンプトで画像を生成します。
Prompt
Prompt:very aesthetic, 1girl, upper body, from front, (holding up sword in front of face:1.1), white background, breastplate, (anime style:0.2)
Negative prompt:worst quality, low quality
生成結果は下図です。Animagineの生成画像は顔が隠れてしまう場合が多いです、Animapencil を利用すると顔も描画されます。
Animagine XL v3.1
Animagine XL v3.1
Animapencil XL v3.0.0
Animapencil XL v3.0.0


手の位置をもう少し下げたいため、プロンプトを以下に変更します。
Prompt
Prompt:very aesthetic, 1girl, upper body, from front, (holding up sword in front of face:1.1), hands on stomach, white background, breastplate, (anime style:0.2)
Negative prompt:worst quality, low quality
生成結果は下図です。Animagineの生成画像は顔が隠れてしまう場合が多いです、Animapencil を利用すると顔も描画されます。
Animagine XL v3.1
Animagine XL v3.1
Animapencil XL v3.0.0
Animapencil XL v3.0.0


Pony系モデルでも出力してみます。
Prompt
Prompt: score_9, score_8_up, score_7_up,score_6_up, score_5_up, source_anime,1girl, upper body, from front, (holding up sword in front of face:1.1), white background, breastplate, (anime style:0.2)
Negative prompt: source_furry, source_pony, source_cartoon, anthro, feral, 3d,
生成結果は下図です。かなり想定イメージに近い画像が出力できる印象です。
tPonynai v3
tPonynai v3
7th Anime XL Pony v1.0
7th Anime XL Pony v1.0

アップスケール

生成した画像をアップスケールします。今回は、Pony系モデルで出力した画像を採用しました。 以下のプロンプトで実行します。
Prompt
Prompt: score_9, score_8_up, score_7_up,score_6_up, score_5_up, source_anime,1girl, upper body, from front, (holding up sword in front of face:1.1), hand holding a sword, white background, breastplate, (anime style:0.2)
Negative prompt:source_furry, source_pony, source_cartoon, anthro, feral, 3d, bad hands

出力サイズを2倍に設定し、ControlNetは有効にし、Lineartを適用します。Control Weightは0.7 Ending Control Stepは0.5に設定しています。
Tiled Diffusionやその他のHires. fixは利用せずにアップスケールを実行します。


画像を生成します。下図の画像が生成できました。


ペイントアプリケーションで細かい部分を修正して完成とします。


著者
iPentecのメインデザイナー
Webページ、Webクリエイティブのデザインを担当。PhotoshopやIllustratorの作業もする。
掲載日: 2024-01-14
iPentec all rights reserverd.