SamSuka
海賊ラビィ
海賊ラビィ

fanbox


【紹介】NSFW画像生成用プロンプトの生成方法

1.はじめに

この記事では、NSFW領域での画像生成用プロンプト自体の生成を考えていきます。


画像生成AIは、何でもとは言えませんが、多種多様な画像を生成できます。


ただ、そのためには、プロンプト(AIへの指示文)を作る必要があります。


プロンプトを手動で組むコツについては、次の記事で考察しました。


【考察】NSFW画像生成時のプロンプトの作り方

1.はじめに この記事は、NSFW画像を生成する時のStableDiffusionのプロンプト(Danbooruタグ列挙)の作り方を考えていきます。 一概にプロンプトと言っても、その中には「キャラ属性」や「ポージング」や「背景」などの複数要素が含まれています。 また、何を要素として含ませるかとともに、何を要素として含ませないか...


ただ、最近では、そのプロンプト自体を生成対象とするアプローチもあり、ある程度定番の手法が確立しつつあるように思われます。


特にSFW領域ではChatGPTに組んでもらうアプローチがあります。


しかし、NSFW領域ではそのアプローチが取れないため、別のプロンプト生成方法を紹介していきます。


2.前提条件


■Pony Diffusion V6 XL [by PurpleSmartAI]


(frame embed)



■Styles for Pony Diffusion V6 XL (Not Artists styles) - Anime 2


(frame embed)



■LCM-LoRA Weights - Stable Diffusion Acceleration Module


(frame embed)



 ※txt2imgでの生成画像をもとにimg2imgでの生成を試みることが多いので、最終的なプロンプトにはLCM-LoRA(高速生成)用のキーワードは含まれないこともあります。「LCM-LoRA適用強度:0.4、Sampling steps:12、CFG Scale:4.0」で50枚以上の生成を試みました。


3.生成例


### ①nipple tweak

```

score_9, score_8_up, score_7_up,

2boys, otoko no ko, femboy, , petite,

solo focus,

straight-on, interracial, nipple tweak, sitting on person, hug from behind,

bulge,

playboy bunny, rabbit ears, fake animal ears, black hairband, black leotard, detached collar, bare shoulders, red bowtie, bare arms, thighband pantyhose, black pantyhose, high heels, red shoes,

purple hair, bob cut, colored inner hair, blue eyes,

embarrassed, heavy breathing,

on couch, faceless muscular male,


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship, tail

```


### ②pov hands, spread anus

```

score_9, score_8_up, score_7_up,

2boys, otoko no ko, femboy, , petite,

solo focus,

pov hands, looking back, interracial, anilingus, ass grab, spread anus,

bulge,

playboy bunny, rabbit ears, fake animal ears, black hairband, black leotard, detached collar, bare shoulders, red bowtie, bare arms, thighband pantyhose, torn pantyhose, black pantyhose, high heels, red shoes,

purple hair, bob cut, colored inner hair, blue eyes,

blush,

on couch, faceless muscular male,


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship

```


### ③anilingus

```

score_9, score_8_up, score_7_up,

2boys, otoko no ko, femboy, , petite,

from side, interracial, top-down bottom-up, anilingus, ass grab, kneeling,

playboy bunny, rabbit ears, fake animal ears, black hairband, black leotard, detached collar, bare shoulders, red bowtie, bare arms, thighband pantyhose, torn pantyhose, black pantyhose, tail,

purple hair, bob cut, colored inner hair, blue eyes,

in heat, open mouth,

on couch,

BREAK

faceless muscular male, dark-skinned male, mature male, white pants, bald


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship, tail

```


### ④upside-down, anal, piledriver sex

```

score_9, score_8_up, score_7_up,

2boys, otoko no ko, femboy, , petite,

upside-down, anal, interracial, piledriver \(sex\), legs grab, leotard aside, legs apart,

huge penis, bulge, perineum, cum in ass,

playboy bunny, rabbit ears, fake animal ears, black hairband, black leotard, detached collar, bare shoulders, red bowtie, bare arms, thighband pantyhose, torn pantyhose, black pantyhose, high heels, red shoes,

purple hair, bob cut, colored inner hair, blue eyes,

heavy breathing, sweat,

on couch, faceless muscular male, speed lines, motion blur


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship

```


### ⑤after anal

```

score_9, score_8_up, score_7_up,

2boys, otoko no ko, femboy, , petite,

from above, pov hands, solo focus,

after anal, interracial, legs grab, legs up, leotard aside, legs apart, cumdrip,

bulge, perineum, cum in ass,

playboy bunny, rabbit ears, fake animal ears, black hairband, black leotard, detached collar, bare shoulders, red bowtie, bare arms, thighband pantyhose, torn pantyhose, black pantyhose, high heels, red shoes,

purple hair, bob cut, colored inner hair, blue eyes,

heavy breathing, sweat, torogao,

on couch


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship, tail

```


 ※プロンプト内の「on couch」を「on green couch」としていれば、レタッチの手間が減ったと思います。Danbooruタグ「on_couch」を意識したのですが、それは不要なことだったと省みています。

4.紹介

次の3つの方法を紹介できます。


### ①機械翻訳サービス


NSFWな日本語文章を機械翻訳してもらい、それをプロンプト内に埋め込むだけでも、それなりの成功率があります。


Google翻訳やDeepL翻訳を代表とするAI翻訳サービスは、無料で利用できるものが多いです。


例1)

```

score_9, score_8_up, score_7_up,

A purple-haired, bob-cut bunny costume femboy licks a popsicle glamorously on a dark green couch.


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship

```


今でこそStableDiffsuionチェックポイントと言えば、Danbooruタグ(アニメ系イラスト掲載サイトで使われる分類タグ)なのですが、そもそものStableDiffusionは一般的な英文で学習されています。


そのため、一般的な英文でも通じるケースは多いです。


ただし、上の画像でも見てわかると思いますが、英語圏的な印象が強くなりがちです。


### ②stable-diffusion-webui-wd14-tagger


(frame embed)



画像からプロンプトを生成するWebUI拡張機能です。プロンプト生成の定番ツールと言えます。


例2) 例1からのプロンプト生成

1boy, male focus, animal ears, food, popsicle, nipples, bow, short hair, bowtie, solo, rabbit ears, leotard, male playboy bunny, purple hair, fake animal ears, detached collar, playboy bunny, wrist cuffs, looking at viewer, blush, bare shoulders, shiny, nail polish, jewelry, black leotard, earrings, bangs, purple nails, holding, sexually suggestive, purple eyes, couch, strapless leotard, black bow, otoko no ko


元画像が必要ですが、それはあえて短いプロンプトでtxt2imgを繰り返したり、他の方の画像を参照させてもらうことで対応可能です。


(frame embed)



意図するものが出てこないのでしたら、3Dモデルキャラクターを使って元画像を作ることもできます。


新・AI男の娘イラスト生成術入門【5.おまけ編】(3Dモデル使用)

1.概要 上級編の続きの記事です。 この記事では、 「独自の意匠を施したオリキャラが登場する画像を生成する」ための 私なりの方法を解説していきます。 2.前提条件 以降の作業は、次のモデルと拡張機能、ツールを使用します。 【モデル】 ・SweetLuna/Aurora 【拡張機能】  ※プロンプトや元画像以外での生成画像コント...


### ③sd-danbooru-tags-upsampler


短めのプロンプトに対してLLM(文章生成AI)が補完をしてくれるツールも登場しています。


(frame embed)



'''

score_9, score_8_up, score_7_up,

otoko no ko, purple hair, bob-cut, bunny costume, femboy, licks, popsicle, glamorously, on a dark green couch,

rating:explicit,


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship

'''

↓変換

'''

score_9, score_8_up, score_7_up,

otoko no ko, purple hair, bob-cut, bunny costume, femboy, licks, popsicle, glamorously, on a dark green couch,

rating:explicit,

, anal, anal object insertion, anus, bar censor, censored, dildo, fingering, heart, heart-shaped pupils, long hair, looking at viewer, lying, male pubic hair, on back, pillow, pubic hair, saliva, sex toy, solo focus, symbol-shaped pupils


Negative prompt: score_6_up, score_5_up, score_4_up, female, woman, girl, she, text, watermark, low-quality, signature, moiré pattern, downsampling, aliasing, distorted, blurry, glossy, blur, jpeg artifacts, compression artifacts, poorly drawn, low-resolution, bad, distortion, twisted, excessive, exaggerated pose, exaggerated limbs, grainy, symmetrical, duplicate, error, pattern, beginner, pixelated, hyper, glitch, overexposed, high-contrast, bad-contrast, mosaic censorship

'''


5.おわりに

プロンプト生成により、初心者の方も簡単にNSFW画像生成ができるようになると思います。


ただ、生成画像に対していいとこ取りして組み合わせるように、生成プロンプトもいいとこ取りして組み合わせる方が良いです。

そのことにより、より意図した画像を生成できるようになります。


あなたのプロンプト知識の積み上げにより、より良いハッテンコンテンツを望むことができます。


(おわり)

【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法 【紹介】NSFW画像生成用プロンプトの生成方法

Comments

回答ありがとうございます。 規約では仕方ありませんね・・・

ヤーナム

pixivFANBOXの規約的に回答が難しいので、ご想像にお任せいたします。そういえば関係ないですが、次の記事は我ながら興味深い記事が書けたと思っています。 https://rarabeat.fanbox.cc/posts/7682858

海賊ラビィ🔞HOWTO男の娘コンテンツ生成

海賊ラビィさんのおかげでWebUIから平出力までは出来るようになりました。 ありがとうございます。 お伺いしたいのですが文中に出てくる <LSキーワード><年齢タグ>は何を参照すればよろしいでしょうか?

ヤーナム


More Creators