一概に制服といっても様々なパターンがあります。学生服に絞ったとしてもブレザー、半袖シャツにスカート、カーディガン、セーラー服、ローファー、タイツと挙げればきりないです。様々な制服をStable DiffusionとMidjourneyで使える呪文(プロンプト)を紹介します。
他のコスプレにも興味のある方は次の記事を参考にしてみてください。
制服を再現する際に使う重要なテクニック
色混ざりを防ぐ
理想の制服を再現する場合、全体の色味だけではなく、制服の色、ネクタイの色、スカートの色や靴の色、カバンの色など様々な色を指定することになります。指定する色が多いと、ネクタイの色が制服に引っ張られるなど色混ざりがよく発生します。その際に使うテクニックをご紹介します。
- 薄いから濃い色の順で呪文(プロンプト)を書く: 薄い色から濃い色の順で書くと色が混ざりにくいと言われています。
- 呪文(プロンプト)の強度を指定する: (white shirts: 1.5)のように(キーワード: 数値)と書くことで数値の分だけキーワードが強調されます。1が基準でそれより強いと強調されて、それより小さいと反対に薄まります。あまり大きな数値を指定すると画像が乱れるので、2以下で指定するのが望ましいです。
- ネガティブ呪文(プロンプト)を利用する: これはもしwhite shirtsと指定したのにグレーになっていたらgrey shirtsをネガティブ呪文(プロンプト)に追加する単純な方法です。
全身画像の顔の崩れを防ぐ
全身画像は顔が崩れやすいので、記事後半部分では、adetailerを使って顔を補正する処理をいれております。詳しくは以下の記事を参考にしてみてください。
半袖シャツにスカート(夏服)
制服というとschool uniform
としがちですが、school uniform
を入れると細かい表現を無視して、ブレザー+ミニスカートといった典型的な制服に固定されてしまいます。細かい制服の違いを再現する場合はschool uniform記載しないほうが良いです。
夏服の場合は、具体的にどんなシャツかを指定して、制服らしさを出すためにschool
を呪文(プロンプト)に入力することで制服の夏服になります。
- collared shirts
, white shirts, short sleeve, tie, blue stripe tie, school, short skirt, dark grey skirt
呪文(プロンプト)の例:
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, collared shirts, white shirts, short sleeve, tie, blue stripe tie, school, short skirt, dark grey skirt, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00048-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00049-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00050-3.png)
呪文(プロンプト)の例2:
シャツがうっすらグレーなので白にしてみます。
white shirts
→(white shirts: 2)
grey shirts
をネガティブ呪文(プロンプト)に追加
呪文(プロンプト)の例:
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, collared shirts, (white shirts: 2), short sleeve, tie, school, short skirt, dark grey skirt, blue stripe tie, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00064-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00065-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00066-3.png)
セーラー服
セーラー服はsailor suit
で実現できます。
sailor suit, dark blue collar, white shirts, short sleeve, school, dark blue skirt, black skirt
呪文(プロンプト)の例:
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, sailor suit, dark blue collar, white shirts, short sleeve, school, dark blue skirt, black skirt, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00168-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00169-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00170-3.png)
セーラー服の胸のスカーフを赤色にする
胸のスカーフですが赤色にしてみたいと思います。最初はred scarf
、red ribbon tie
なども試してみましたが、red ribbon
が一番、効果が高かったです。それでは胸のスカーフの色を赤にしてみます。
red ribbon
を追加
![](https://kindanai.com/wp-content/uploads/2023/08/00176-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00177-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00178-3.png)
ブレザー
ブレザーを試してみます。ブレザーはschool uniform, blazer
で学校のブレザーが再現できます。
school uniform, blazer, school, dark blue skirt, short skirt
呪文(プロンプト)の例:
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school uniform, blazer, school, dark blue skirt, short skirt, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00197-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00198-3.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00199-4.png)
カーディガン
カーディガンを試してみます。カーディガンはschool cardigan
です。ただし、school cardigan
だけだとカーディガン単体で意図した通りにならないので、シャツの呪文(プロンプト)white shirts, collared shirt
も記載する必要があります。そして、カーディガンがシャツに上書きされやすくなるので、重ね着という意味のlayer of clothes
をしていすると安定してカーディガン姿の制服が再現されます。
school cardigan, (brown cardigan: 2)
white shirts, collared shirt
layer of clothes
necktie, short skirt, blue skirt
呪文(プロンプト)の例:
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school, white shirts, collared shirt, layer of clothes, school cardigan, (brown cardigan: 2), necktie, short skirt, blue skirt, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00300-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00301-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00302-3.png)
白のカーディガン
次に白色よりのカーディガンにしてみます。
(brown cardigan: 2)
→(white cardigan: 2)
に変更
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school, white shirts, collared shirt, layer of clothes, school cardigan, (white cardigan: 2), necktie, short skirt, blue skirt, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00305-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00306-3.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00307-4.png)
カーディガンと萌え袖
萌え袖にしてみます。sleeves past wrists, overly long sleeves
を追加します。
sleeves past wrists, overly long sleeves
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school, white shirts, collared shirt, layer of clothes, school cardigan, (white cardigan: 2), necktie, short skirt, blue skirt, sleeves past wrists, overly long sleeves, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00425-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00426-3.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00427-4.png)
カバンをもたせる
ここはかなり難しく、一番無難なカバンが生成されるのがschool bag
といれた場合でした。他にもhand bag
,polyester bag
などを試しましたがイマイチな結果となりました。
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school uniform, blazer, school, dark blue skirt, short skirt, school bag, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00412-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00413-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00414-3.png)
ローファーと黒い靴下を履かせる
ここでは足元を写すために全身画像を生成します。そのためadetailerで顔部分に関しては補正を入れております。さてローファーですがloafers
、靴下はsocks
でOKです。ここでは色を指定しました。
1 girl, school uniform, blazer, school, dark blue skirt, short skirt, black socks,
loafers,
full body,
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school uniform, blazer, school, dark blue skirt, short skirt, black socks, loafers, full body, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00465-1-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00466-2-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00467-3-1.png)
※adetailerで顔の補正を入れています。
白のルーズソックスに変更
ルーズソックスは和製英語でlong slouchy socks
が英語のようです。これでルーズソックスの画像を作ってみます。ただし、あまり効果は感じないです。
1 girl, school uniform, blazer, school, dark blue skirt, short skirt, socks, white socks, long slouchy socks, loafers, full body
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school uniform, blazer, school, dark blue skirt, short skirt, socks, white socks, long slouchy socks, loafers, full body, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00481-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00482-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00483-3.png)
※adetailerで顔の補正を入れています。
スクールタイツ
スクールタイツはtights, school tights,
で実現できます。どちらか一方だと精度が悪いのでどちらも入力してください。
(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.4), (extremely detailed 8k wallpaper),1 girl, school uniform, blazer, school, dark blue skirt, short skirt, tights, school tights, loafers, full body, Photo of 15 years old Japanese woman.
![](https://kindanai.com/wp-content/uploads/2023/08/00501-1.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00502-2.png)
![](https://kindanai.com/wp-content/uploads/2023/08/00503-3.png)
※adetailerで顔の補正を入れています。
コメント