Stable Diffusion系の画像生成AIで使用する、ノートに書く、メモを取る、手紙を書くなど書く動作のプロンプトについてご紹介します。

書く動作のプロンプトは、基本的に以下のパターンになります。
writing in ノートなど with 書く道具
writing on 紙の表面など with 書く道具
writing ノートや紙など、holding 書く道具

「writing in」と「writing on」の違いは、どこに書くかで決まります。
ノートの場合は、「wirting in」は、ノートの中と言う意味で、ページを開いてそこに書くことになります。
「writing on」は、ノートの表面と言う意味で、表紙や裏表紙に書くことになります。

以下のプロンプトは主な書く道具になります。

万年筆fountain pen
羽根ペンfeather quill
鉛筆wooden pencil、pencil
ボールペンballpoint pen
マジックペンmagic pen
フェルトペン サインペンfelt-tip pen
マーカーペンmarker pen

これらのプロンプトを中心にして画像を生成していきます。

モデルは、Z-Image Turbo と ERNIE-Image Base を使って生成しました。

ノートに文字を書く

鉛筆でノートの文字を書いている画像を生成します。基本的な書く動作になります。視線をノートに向けることで、書くことに集中している様子を表現できます。

キーとなるプロンプト

writing in notebook with wooden pencil, looking down at notebook
木製の鉛筆でノートに書き込んでいる、ノートを見下ろしている

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, front view, super cute japanese 17yo woman, bob hair, shirt dress, sitting on chair at desk, writing in notebook with wooden pencil, looking down at notebook, soft natural light from window, in cozy room

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 3611333343, Size: 768x1024, Model: z_image_turbo_1.0_q8p

紙に文字を書く

ボールペンで紙に書いている画像を生成します。1枚の紙からなるものに書く動作になります。

キーとなるプロンプト

writing on sheet of paper with ballpoint pen, looking down at paper
ボールペンで紙に文字を書いている、紙を見下ろしている

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, front view, super cute japanese 17yo woman, bob hair, shirt dress, sitting on chair at desk, writing on sheet of paper with ballpoint pen, looking down at paper, soft natural light from window, in cozy room

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 2692586547, Size: 768x1024, Model: z_image_turbo_1.0_q8p

手紙を書く

羽根ペンで手紙を書いている画像を生成します。手紙を書く動作は送る相手を思い浮かべながら文章を綴ります。送る相手や内容によって表情を変えて、雰囲気を出すのも良いと思います。

キーとなるプロンプト

writing letter, holding feather quill, looking down at letter, paper and envelope on desk
手紙を書いている、羽ペンを手に持ち、手紙を見下ろしている。机の上には紙と封筒がある

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, front view, super cute japanese 17yo woman, bob hair, gentle smile, happy eyes, relaxed eyebrows, joyful, shirt dress, sitting on chair at desk, writing letter, holding feather quill, looking down at letter, paper and envelope on desk, soft natural light from window, in cozy room

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 1308440231, Size: 768x1024, Model: z_image_turbo_1.0_q8p

メモを取る

立ってメモをとっている画像を生成します。片手でメモを持ち、もう片手で相手の話を聞きながら要点を書き留めます。聞き逃しや書き漏れがない様に真剣な表情になりやすいです。

キーとなるプロンプト

standing, taking notes in notepad, holding ballpoint pen, looking down at notepad
立っている、メモ帳にメモを取っている、ボールペンを持ち、メモ帳を見下ろしている

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, front view, super cute japanese 20yo woman, bob hair, focused expression, shirt dress, standing, taking notes in a notepad, holding ballpoint pen, looking down at notepad, soft natural light from window, in office

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 1868196539, Size: 768x1024, Model: z_image_turbo_1.0_q8p

電話しながらメモを取る

電話しながらメモを取るっている画像を生成します。片手でスマートフォンを持ち、もう片方で電話の内容をノートに記録します。

キーとなるプロンプト

taking notes in a notebook, holding ballpoint pen, looking down at notebook, talking on the smartphone
ノートにメモを取っている、ボールペンを手に持ち、ノートに視線を落としながら、スマートフォンで話している

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, front view, super cute japanese 17yo woman, bob hair, bright smile, shirt dress, sitting on chair at desk, taking notes in a notebook, holding ballpoint pen, looking down at notebook, talking on the smartphone, soft natural light from window, in office

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 328968854, Size: 768x1024, Model: z_image_turbo_1.0_q8p

日記をつける

日記をつけている画像を生成します。1日の終わりに今日の出来事を万年筆で丁寧に記します。

キーとなるプロンプト

carefully writing in diary with fountain pen, elegant posture, looking down at diary
万年筆で丁寧に日記を綴っている、優雅な姿勢、日記を見下ろしている

照明の位置を指定しないと左からの明かりになる場合があるので、ライトを右側に置く様にします。
desk lamp placed on right side of study desk
勉強机の右側に置かれたデスクランプ

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, super cute japanese 20yo woman, bob hair, shirt dress, sitting at study desk, carefully writing in diary with fountain pen, elegant posture, looking down at diary, desk lamp placed on right side of study desk, dark midnight, complete darkness outside the window, soft lighting, in cozy room

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 1111463470, Size: 768x1024, Model: z_image_turbo_1.0_q8p

クリップボードに文字を書く

文房具のクリップボードに文字を書いている画像を生成します。片手でクリップボードを支え、もう片手で文字を書く動作です。

キーとなるプロンプト

standing, writing on clipboard with a pen, looking down at clipboard
立っている、ペンでクリップボードに書き込んでいる、クリップボードを見下ろしている

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, front view, super cute japanese 17yo woman, bob hair, focused expression, shirt dress, standing, writing on clipboard with a pen, looking down at clipboard, soft natural light from window, in office

設定値
Steps: 8, Sampler: UniPC Trailing, Guidance Scale: 1.0, Seed: 2761129327, Size: 768x1024, Model: z_image_turbo_1.0_q8p

ペンを止めて考える

文字を書くのを途中で止める画像を生成します。ノートから鉛筆を少し浮かせ、次の文章を考える状態を表現できます。

キーとなるプロンプト

pausing while writing, holding pencil above open notebook, looking up, thoughtful
書く手を止め、開いたノートの上で鉛筆を構えたまま、顔を上げる、考え込む

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, super cute japanese 20yo woman, bob hair, shirt dress, sitting at study desk, pausing while writing, holding pencil above open notebook, looking up, thoughtful, soft natural light from right side window, in cozy room

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 179896401, Size: 768x1024, Model: z_image_turbo_1.0_q8p

黒板に文字を書く

黒板にチョークで文字を書いている画像を生成します。机に向かって書く動作とは異なり、立った姿勢で腕を上げて文字を書くポーズになります。

キーとなるプロンプト

writing on blackboard with piece of chalk, arm raised, standing beside board
チョークで黒板に文字を書いている、腕を上げ、黒板の横に立っている

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, side view, japanese 25yo woman, long hair, shirt dress, writing on blackboard with piece of chalk, arm raised, standing beside board, soft natural light from window, in cozy class room

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 3112016877, Size: 768x1024, Model: z_image_turbo_1.0_q8p

砂に文字を書く

砂浜で流木を使って文字を書いている画像を生成します。細い流木をペンの代わりに文字を書いていきます。
書く文字も大きいので、実際に文字を書いているところを生成しました。

キーとなるプロンプト

writing words "I love" in sand with long and slender piece of driftwood, holding piece of driftwood and tracing end of final word
細長い流木で砂に「I love」という言葉を書いている、最後の単語の末尾をなぞっている

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, back view, super cute japanese 20yo woman, bob hair, bright smile, one-piece swimsuit, writing words "I love" in sand with long and slender piece of driftwood, holding piece of driftwood and tracing end of final word, in beautiful beach, ocean waves in the soft-focused background, natural lighting

設定値
Steps: 8, Sampler: UniPC Trailing, CFG Scale: 1.0, Seed: 3537349775, Size: 1024x768, Model: z_image_turbo_1.0_q8p

ガラス面に文字を書く

シャワールームのガラスのドアに文字を書いている画像を生成します。蒸気で曇ったガラスドアに指で文字を書いています。

キーとなるプロンプト

writing words "help me" on heavily fogged glass shower door with her index finger, fingertip touching misted glass, drawing letters through condensation, clear trails left by her finger on the steamed glass, shower room steam
人差し指で激しく曇ったガラスのシャワードアに「help me」と書き、曇ったガラスに触れる指先、結露したガラスに文字をなぞり、湯気で曇ったガラスに指が残すくっきりとした跡、シャワールームの湯気

プロンプト
master piece, photo-realistic, detailed skin, detailed fingers, perfect anatomy, closed-up, front view, taken from outside the shower room, super cute japanese 20yo woman, wet long hair, naked and wrapped in towel, standing inside shower room, writing words "help me" on heavily fogged glass shower door with her index finger, fingertip touching misted glass, drawing letters through condensation, clear trails left by her finger on the steamed glass, shower room steam, other hand on chest, dim lighting, rim light, backlighting

設定値
Steps: 30, Sampler: UniPC Trailing, CFG Scale: 4.0, Seed: 3944288567, Size: 1024x768, Model: ernie_image_q8p

まとめ

書く動作のプロンプトをご紹介しました。

書く動作の画像は生成率は高かったです。文字を描画しない場合は、モデル任せで何が書かれているか分かりません。

文字を書いている画像を描画しようとしたとき、文字列と文字を書く道具の位置が中々揃わないことがあり、何回も生成を繰り返しました。

今回初めて文字を描くのに挑戦しました。中国で作られたモデルで漢字を描いたところ、中国の漢字になることを初めて知りました。なので、今回は英語の文字を書くことにしました。いつか日本の漢字を出す方法を探してみたいと思います。

プロンプト一覧

writing in notebook with wooden pencil木製の鉛筆でノートに書き込んでいる
writing on sheet of paper with ballpoint penボールペンで紙に文字を書いている
writing letter, holding feather quill手紙を書いている、羽ペンを手に持ち
taking notes in notepad, holding ballpoint penメモ帳にメモを取っている、ボールペンを持ち
taking notes in a notebook, holding ballpoint penノートにメモを取っている、ボールペンを手に持ち
talking on the smartphoneスマートフォンで話している
carefully writing in diary with fountain pen万年筆で丁寧に日記を綴っている
writing on clipboard with a penペンでクリップボードに書き込んでいる
pausing while writing書く手を止めている
holding pencil above open notebook開いたノートの上で鉛筆を構えたまま
writing on blackboard with piece of chalkチョークで黒板に文字を書いている
writing words "I love" in sand with long and slender piece of driftwood細長い流木で砂に「I love」という言葉を書いている
writing words "help me" on heavily fogged glass shower door with her index finger人差し指で激しく曇ったガラスのシャワードアに「help me」と書いている