セーブポイント

特にジャンルの決まってない雑記です。

もし機械がみすちゃんを描いたら

この記事は、みす56代 Advent Calendar 2022の4日目の記事です。

2回目です。おはようございます。

暇だったのでアドカレの枠とってたんですが、土日急用ができてしまい遅れました……。でもちゃんと書きますよ~。

流行り(?)(もう過ぎた気がするけど)の画像生成モデルでみすちゃんを描いてみたらどうなるか。やってみましょう。

資料探し

特定のキャラクターを生成したい場合、三面図とかそういうのがあるととても良いです。

しかしながら、そもそもみすちゃんって詳細な設定資料が無さそう。実はどこかにあるんですかね?

髪の色が青くらいは共通してそうですが、目の色も固定ではなさげな感じです。意外とふんわりしてるんですね。

モデル選び

今回はイラスト生成なので、その分野に特化してるモデルを使います。
有名なのはNovelAIのモデルだと思いますが、それ以外にも最近はたくさんモデルが乱立している状況です。

元祖二次元系のWaifu Diffusionをはじめ、Anything V3、Nijijourney、EimisAnimeDiffusion、TrinArt系列などなど…。

これらのモデルはミックスして使うこともできて、今回はBerryMixと呼ばれるモデル(レシピ?)をもとに私が改造したやつを使うことにしました。(特に深い意味はなく、本当になんとなくです)

とりあえず生成してみる

プロンプトのベースは元素法典とかから拝借して適当にやってみます。

プロンプトなどの詳細

((illustration)), ((floating hair)), ((chromatic aberration)), ((caustic)), lens flare, dynamic angle, ((portrait)), (1 girl), ((solo)), cute face, ((hidden hands)), asymmetrical bangs, (beautiful detailed eyes), eye shadow, blue eyes, ((huge clocks)), ((glass strips)), (floating glass fragments), ((colorful refraction)), (beautiful detailed sky), ((dark intense shadows)), ((cinematic lighting)), ((overexposure)), (expressionless), (blue hair), (school cap:1.05), big top sleeves, ((frills)), blonde hair, hair_ornament, ribbons, bowties, buttons, (small breast), pleated skirt, ((sharp focus)), ((masterpiece)), (((best quality))), ((extremely detailed)), colorful, hdr,
Negative prompt: lowres, (bad_prompt_v2:0.8), bad anatomy, (inaccurate limb and hands), bad hands, text, error, missing fingers, extra digits, fewer digits, cropped, worst quality, low quality, standard quality, jpeg artifacts, signature, watermark, username, blurry, mature, censored, (large breasts:0.8),
Steps: 32, Sampler: DPM++ 2M, CFG scale: 5, Seed: 3460127155, Size: 768x512, Model hash: 6d343353, Clip skip: 2, ENSD: 31337

良い感じ?

違う作風のやつも描いてもらいましょう。

プロンプトなどの詳細

(((masterpiece))), (((best quality))), ((ultra-detailed)), (illustration), (dynamic angle), ((floating)), (paint), ((disheveled hair)), (solo), (1girl), loli, ((small breasts)), (((detailed anima face))), ((beautiful detailed face)), choker, bare shoulders, ((school uniform)), (school cap:1.12), blue hair, ((colorful hair)), ((streaked hair)), beautiful detailed eyes, (Gradient color eyes), (((colorful eyes))), (((colorful background))), (((high saturation))), (((surrounded by colorful splashes))), (((surrounded by colorful dot))), colorful bubble, ((shining)), (looking at viewer), light smile,
Negative prompt: lowres, (bad_prompt_v2:0.8), bad anatomy, (inaccurate limb and hands), bad hands, text, error, missing fingers, extra digits, fewer digits, cropped, worst quality, low quality, standard quality, jpeg artifacts, signature, watermark, username, blurry, mature, censored, (large breasts:0.8),
Steps: 36, Sampler: DPM++ 2M, CFG scale: 6, Seed: 608067692, Size: 512x768, Model hash: 6d343353, Clip skip: 2, ENSD: 31337

機械が描いたものらしく、どっちも細部までちゃんと見ると変なんだけど、パッと見結構良い感じに。

細部をざっくり修正しよう

今載せた2つのイラストはtxt2imgのみを使用していますが、普通は手とか細部が破綻してるとやっぱり気になるのでinpaintingと呼ばれる機能を利用して修正したりします。

2枚目のみすちゃんの左肩の部分を見てみると、肩が2つあるみたいになってしまっているので実際に直してみましょう。

修正後

最初より違和感が減らせました。まだ気になる部分があれば、この工程を繰り返すだけです。

生成モデルと協力してイラストを作るワークフローはだいたいこんな感じ。絵が描ける人からすれば当然一貫性の無い変なイラストに見えると思いますが、でも悪くないんじゃないかな~と思っています。

おわりに

明日はまた次期幹事長のたまかけの記事らしいです!

アドカレ埋まらなそうなので、ネタがあれば普通にあと2回くらい書くかも。

ちょっとだけえっちなおまけ