メインコンテンツへスキップ
見出し画像

Stable Diffusionで実写級エロ可愛い女の子の複数設定を試行錯誤

    今日は、Stable Diffusionで描く「ピンクの桜花冠を付けた黒髪ツインテールの女の子」イラストのプロンプトを、本気で磨き上げる作業に丸一日費やしました。

    最初に生成した画像は、線がふわっと柔らかすぎてイラスト感が強くなりすぎたり、髪飾りの可愛いピンクが服や背景にまで染み出してしまったり、しかも勝手に桜の枝や花びらが背景に大量発生したり…と、理想の絵柄からかなり遠い状態でした。

    「花冠のピンクだけを綺麗に浮かび上がらせて、服は希望通りの黒寄り青のスカートに、背景はシンプルに抑えたい」という明確なビジョンがあるのに、Stable Diffusionが勝手に「ピンクで甘い桜雰囲気」に寄せようとしてくるので、原因を一つひとつ検証しながら正プロンプトとネガティブプロンプトを何度も調整する、かなり根気のいる作業になりました。

    これまでの設定・モデル・拡張機能の要約解説

    使用モデル

    Dream2Reality_v10(SDXLベースの実写寄りモデル)

    基本生成設定

    • Steps: 30

    • Sampler: Euler a(滑らかで安定した線が出やすい定番サンプラー)

    • CFG Scale: 7(プロンプトへの忠実度を中程度に設定)

    • 解像度: 512×768(縦長構図)

    • Hires fix(高解像度修正):

      • Upscale by 2(最終的に約1024×1536相当)

      • Upscaler: Latent

      • Denoising strength: 0.45

    使用した拡張機能

    • ADetailer(Automatic Detailer)

      • 1st: face_yolov8n.pt(顔の自動高精度修正)

      • 2nd: adetailerFootYolov8x_v20.pt(足・靴下などの細部修正)

      • 自信度0.3、Denoising strength 0.4で自然にディテールを整えてくれます。

    • Version: Stable Diffusion WebUI v1.9.0

    作成した画像

    モデルのポーズや服装はだいたい良いが、全体的にピンクの色設定が影響を受けている。
    花冠の花のサイズ指定や個数が反映されてない。

    画像

    Positive Prompt

    masterpiece, best quality, ultra-detailed, absurdres, 8k, raw photo, sharp focus, clean lineart, crisp outlines, strong linework, defined edges, high contrast, anime style,
    1girl, solo, beautiful detailed face, large expressive pink eyes, blush, looking at viewer, slight head tilt,
    black hair, long twintails, side ponytail, pink sakura flower crown with only 5-6 large pink flowers on bangs, simple minimalist cherry blossom crown, solid pink petals,
    pink serafuku, sailor uniform, short sleeves, pink neckerchief tied in bow, white sailor collar with black stripes,
    pink miniskirt with white strawberry and small flower print, frilled hem,
    strawberry print panties slightly visible,
    squatting on bed, from below, looking back over shoulder, dynamic low angle,
    curvy body, medium breasts, thick thighs, loose black socks,
    soft lighting, bedroom setting, pink pillows and sheets, scattered cherry blossom petals and strawberries on bed,
    (cleancore:1.1), sharp detailed lines, professional anime illustration, not blurry, not painterly, strong black outlines

    Negative Prompt

    lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, out of focus, censorship, old, deformed, amateur, painting, sketch, 3d render, cg, realistic, photorealistic, extra limbs, bad proportions, gross proportions, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, text, error

    まずは色指定などの固定化を試す

    背景の色等の個別化は出来た。しかしパンチラというか、スカートがどこかに行っちゃった。 

    画像

    Positive Prompt

    masterpiece, best quality, ultra-detailed, absurdres, 8k, raw photo, sharp focus, clean lineart, crisp outlines, strong linework, defined edges, high contrast, anime style,
    1girl, solo, beautiful detailed face, large expressive pink eyes, blush, looking at viewer, slight head tilt,
    black hair, long twintails, side ponytail, (pink sakura flower crown with only 5-6 large pink flowers on bangs:1.2), simple minimalist cherry blossom crown, solid pink petals,
    pink serafuku, sailor uniform, short sleeves, pink neckerchief tied in bow, white sailor collar with black stripes,
    pink miniskirt with white strawberry and small flower print, frilled hem,
    strawberry print panties slightly visible,
    squatting on bed, from below, looking back over shoulder, dynamic low angle,
    curvy body, medium breasts, thick thighs, loose black socks,
    soft lighting, bedroom setting, pink pillows and sheets, scattered cherry blossom petals and strawberries on bed,
    (cleancore:1.1), sharp detailed lines, professional anime illustration, not blurry, not painterly, strong black outlines

    Negative Prompt

    lowres, bad anatomy, bad hands, blurry, out of focus, low quality, worst quality, jpeg artifacts,
    
    color bleed, color contamination, pink spill, pink color leak, pink tint on clothes, pink background, pink room, pink lighting, pink atmosphere,
    
    pink hair, pink-tinted hair, pink highlights,
    
    cherry blossom tree, sakura tree, sakura branches, cherry blossom branches, floating petals, scattered petals, flowers in background, sakura in background, cherry blossoms everywhere,
    
    pink sailor uniform, pink serafuku, entire outfit pink, pink skirt, pink miniskirt, flower pattern on clothes, cherry blossoms on skirt,
    
    small flowers on headpiece, tiny buds, twigs, branches, leaves, stems, extra decorations on crown, horns,
    
    deformed, mutated, bad proportions, extra limbs

    スカートの要素を強くする

    スカートが戻ってきたが、ワカメちゃんよりスカートが短い。

    画像

    Positive Prompt

    Masterpiece, highest quality, ultra-high definition, absurd, 8K, RAW photo, sharp focus, clean line drawing, crisp contours, powerful lines, clear edges, high contrast, anime style,
    One girl, solo, beautiful and delicate features, expressive large pink eyes, blushing cheeks, gazing at the viewer, slightly tilting her head,
    Black hair, long pigtails, side ponytail, (pink Flower crown with 5-6 large pink Flower in the bangs, simple and minimalist cherry blossom crown, pink petals: 1.2),
    Pink sailor suit, short sleeves, pink neckerchief Pom-pom knot, white sailor collar with black stripes,
    (pink miniskirt, frilly skirt),
    (a glimpse of strawberry-patterned panties),
    crouching on the bed, looking back over her shoulder from below, dynamic low angle,
    curvy body, medium-sized breasts, thighs, loose black socks,
    soft lighting, bedroom scene, pink pillow and sheets, scattered cherry blossom petals and strawberry bed,
    (cleancore:1.1), sharp and detailed lines, professional anime illustration, not blurry, not painterly, strong black outlines

    Stable DiffusionのBREAK構文を試す

    プロンプト内の特定の要素を強調する目的でBREAK構文を試してみました。
    複数指定だと安定させるのが難しいかも。

    画像
    画像
    画像

    Positive Prompt

    Masterpiece, highest quality, ultra-high definition, unreal, 8K, RAW photo, sharp focus, clean lines, crisp contours, strong lines, clear edges, high contrast, anime style
    BREAK
    A single girl, solo, beautiful and delicate features, expressive large pink eyes, blushing cheeks, gazing at the viewer, slightly tilting her head
    BREAK
    Black hair, long pigtails, side ponytail, (pink flower crown with 5-6 large pink flowers in her bangs, simple and minimalist cherry blossom crown, pink petals: 1.3)
    BREAK
    Pink sailor uniform, short sleeves, with pink pom-poms Scarf, white sailor collar with black stripes
    BREAK
    (pink miniskirt, frilly skirt),
    (a glimpse of strawberry-patterned panties:1.2),
    Crouching on the bed, looking back over her shoulder from below, dynamic low angle
    BREAK
    Curvy body, medium-sized breasts, thighs, loose black socks,
    Soft lighting, bedroom scene, pink pillow and sheets, scattered cherry blossom petals, strawberry field,
    (cleancore:1.1), sharp and precise lines, professional anime illustration, not blurry, not painterly, strong black outlines

    完成ではないが、だいぶ色とかは安定した

    服と背景の色はだいぶ良くなった。
    花は種類指定で良くなりそう。
    問題は今まで出なかった花束とか苺の出現。ネガティブプロンプトでどうにかなるのか分からない。

    画像

    今日の成功

    上のとは違って「メイド姿の女の子」という簡単なものなら楽に生成が出来ました。
    とはいえ、今後も複数指定が出来るように努力していきたいと思います。

    A.

    画像

    B.

    画像

    成功したプロンプトは続きに

     
     
    花の妖怪「かっとぷらざ」。巷では「かっぷら」「かとぷら」「かぷ」など色んな呼び方をされている。 主にMinecraftで遊んでいます。2016年~2024年度のマイクラ肝試しスタッフとしてステージを作ったりしていました。 Amazonアソシエイト参加中

    あなたへのおすすめ