AI魔術師の記録

GPT(Generative Pre-trained Transformer)を中心にしたAIの最新動向や応用事例、その社会への影響などを紹介するブログです。

Stable Diffusionの便利プロンプト集

今回はGPTではなく、Stable Diffusionでよく使うプロンプト集。
プロンプトは入れすぎればよいというものではない。むしろ入れすぎると精度が落ちるので、下記に挙げたプロンプトから取捨選択して使うとよい。
前半にポジティブ・プロンプト、後半にネガティブ・プロンプトを書いた。

画質を上げるポジティブ・プロンプト

(8k, best quality, masterpiece,ultra detailed, ultra high res:1.2)

高精細な写真にするポジティブ・プロンプト

high detail RAW color photo,professional photograph

日本人の美女を出すポジティブ・プロンプト

Japanese looking like idol,extremely delicate,extremely detailed beautiful woman, extremely detailed face, extremely detailed eyes, extremely detailed skin, extremely detailed fingers, extremely detailed nose, extremely detailed mouth,perfect anatomy

画質を上げるネガティブ・プロンプト

qualityの大きさを2にすることでかなり大きな効果が出る。

(worst quality:2), (low quality:2), (normal quality:2),(blurry:2),(monochrome:1.2)

指や腕など人として不自然な部分を修正するネガティブプロンプト
普通の人間を描きたいときには、とりあえず入れておくとよい。

missing fingers, extra fingers, extra arms, extra legs,bad hands, bad arms, missing arms, missing digit,extra digit, fewer digits,missing hands,missing limbs,fused hands, poorly drawn hands, poorly drawn hands, three hands,fused fingers, extra fingers, extra limbs, extra arms, malformed limbs, too many fingers, mutated hands, urgly arms, abnormal hands, poorly drawn hands,boken limb,too few fingers,bad anatomy

日本人の美女を出すネガティブ・プロンプト

acnes, skin blemishes, ugly face, glans, fat

プールサイドにいる水着美女を作成するプロンプト

ポジティブ・プロンプト

(8k, best quality, masterpiece,ultra detailed, ultra high res,high detail RAW color photo,professional photograph:1.2),extremely delicate and beautiful,extremely detailed beautiful girl, extremely detailed face, extremely detailed eyes, extremely detailed skin, extremely detailed fingers,extremely detailed nose, extremely detailed mouth,perfect anatomy,(Japanese girl looking like idol in swimming costumes at the pool side :1.1),(sexy pose:1.1),(upper body:1.1),smile

ネガティブ・プロンプト

(worst quality:2), (low quality:2), (normal quality:2),(blurry:2),(monochrome:1.2), (grayscale:1.2),acnes, skin blemishes, ugly face, glans,missing fingers, extra fingers, extra arms, extra legs,bad hands, watermark, text, error, blurry, jpeg artifacts, cropped, bad anatomy, double navel, muscle,bad arms, missing arms, missing digit,extra digit, fewer digits,missing hands,missing limbs,fused hands, poorly drawn hands, poorly drawn hands, three hands,fused fingers, extra fingers, extra limbs, extra arms, malformed limbs, too many fingers, mutated hands, urgly arms, abnormal hands, poorly drawn hands,boken limb,too few fingers, fat

設定は以下の通り。
モデル:BracingEvoMix_v1.safetensors 
(/content/gdrive/MyDrive/sd/model/BracingEvoMix_v1.safetensors ⇐google driveでpathを指定するとき用)
width:600、height:900
sampling steps:30
Sampling method:DPM++2M Karras

上記のポジティブ・プロンプトについて最後の部分(下記の部分)を調整することで、さまざまな種類の美女を生成することが可能。
(Japanese beautiful girl looking like idol in swimming costumes at the pool side :1.1),(sexy pose:1.1),(upper body:1.1),smile

上記のプロンプトの出力結果は以下の通り

サンプル1
サンプル2
<>
サンプル3

派手髪のビキニギャルを作成するプロンプト。

上記のものを基本形として、少し設定を加えているだけ。

ポジティブ・プロンプト

(8k, best quality, masterpiece,ultra detailed, ultra high res,high detail RAW color photo,professional photograph:1.2),extremely delicate and beautiful,extremely detailed beautiful girl, extremely detailed face, extremely detailed eyes, extremely detailed skin, extremely detailed fingers,extremely detailed nose, extremely detailed mouth,perfect anatomy,(sexy pose,smile,bikini,the pool side,cute Japanese girl looking like Japanese idol,sexy pose,bikini model,Gal with flashy sexy jaguar  bikini and flashy earrings),(green and red and yellow and blue hair:1.2),large breast,(Tanning, wheat skin)(Tanning, wheat skin)

ネガティブ・プロンプト

(worst quality:2), (low quality:2), (normal quality:2),(blurry:2),(monochrome:1.2), (grayscale:1.2),acnes, skin blemishes, ugly face, glans,missing fingers, extra fingers, extra arms, extra legs,bad hands, watermark, text, error, blurry, jpeg artifacts, cropped, bad anatomy, double navel, muscle,bad arms, missing arms, missing digit,extra digit, fewer digits,missing hands,missing limbs,fused hands, poorly drawn hands, poorly drawn hands, three hands,fused fingers, extra fingers, extra limbs, extra arms, malformed limbs, too many fingers, mutated hands, urgly arms, abnormal hands, poorly drawn hands,boken limb,too few fingers, fat

出力結果以下の通り(見てわかる通り指がおかしい。これは現在のAIではプロンプトだけでは制御不可能かと思われる。指を隠すか、たまたまうまくいくのを願うしかない。)

サンプル5
<>
サンプル4