
環境:Stable Diffusion WebUI Forge f2.0.1
モデル:Zeniji_Mix Ether(Illustrious)
拡張機能の「Dynamic Prompts」を使うとプロンプトをランダムにすることができる。これにより様々な組み合わせの画像をランダムに生成することができる。
学生の頃はバイオハザードが好きだったので、そんな生物兵器っぽいクリーチャーを作ってみます。
導入方法
Stable Diffusion WebUI Forgeの画面から
1.「Extensions」タブを開く
2.「Available」をクリックしてから「Load from:」をクリックする
3.「dynamic prompts」で検索し、出てきた項目の中から「Dynamic Prompts prompting」を探す
4.「install」ボタンをクリックしてインストールする。
再起動すると、生成画面のUIにDynamic Promptsカテゴリが追加されている。
文法
ランダムに1つ選択
{cat|dog|cow|horse}重みづけ
数値が高いものほど選ばれやすくなる。合計して1にする必要はない。
{0.4::day|0.4::night|0.1::evening twilight|0.1::dusk sky}複数選択
先頭の「数値$$」に指定した個数で選ばれる
{2$$ and $$armadillo|wasp|seahorse|whale|mantis|scorpion|locust}
# wasp and mantis{}で囲った中から2つ選ばれ「wasp and mantis」のような結果になる。3$$にすれば3つ選ばれる。
動物を合成してクリーチャーを生成する
こちらのリストを参考に動物を掛け合わせていきます。
Stable Diffusionで使える動物リスト
コンセプトアートのスケッチ風でクリーチャーを描かせてみました。以下の単語で気持ち悪さが増します。
grotesque bioweapon(グロテスクな生物兵器)
parasitic infection host / parasite host(寄生されたホスト)





プロンプト
masterpiece, best quality,
large creature combines
{2$$ and $$armadillo|manta ray|seahorse|whale|mantis|scorpion|locust|wasp|stag beetle|grasshopper|cockroach|black widow spider|anaconda|snake|cobra|venus flytrap|gorilla|centipede|worm|frog|goat|rabbit|bear|kangaroo|cow|boar|eagle},
creature is creepy and scary, grotesque bioweapon,
full body, solo,
simple background, concept art, cinematic,「Seed」は-1にしてランダムにし、「Batch Size」にレンダリングしたい枚数を設定する。毎回違った組み合わせのクリーチャーが生成されるようになる。
かかる時間はRTX4070の環境で1枚につきおおよそ10秒ほど。100枚ぐらいを指定して大量に描いてもらい、ゆっくり選別する。完成度が高いものばかりではないけれども、たまにいいものがある。キャラクターデザインのアイデアに使えそう。
映画やゲーム的な雰囲気で生成してみる
これも同じように大量に描いてもらう。警官がクリーチャーの犠牲になっているシーン。





プロンプト
masterpiece, best quality,
1guy,
guy: old police man, crew cut, tore police uniform,
guy:
eyes wide open, rolling eyes, lips apart,
legs apart, limp body, long neck, (head tilt:1.2),
bleeding, injured, unconscious, passed out, dying,
1creature, size differences,
{huge|large} creature combines
{2$$ and $$armadillo|gorilla|sloth|fox|hippopotamus|squirrel|rhinoceros|hermit crab|ant|mantis|dragonfly|cicada|mosquito|scorpion|locust|wasp|beetle|grasshopper|cockroach|spider|anaconda|snake|cobra|venus flytrap|centipede|earthworm|frog|goat|rabbit|bear|kangaroo|cow|boar|hawk|chiken|vulture|crow},
creature is creepy and scary, grotesque bioweapon,
creature:
(strangling:1.2), carry,
focus guy, portrait, from below,
cinematic lighting, night,警官と対峙するクリーチャーをゲームらしい肩越し視点の構図で描いてみた。





プロンプト
master piece, best quality,
1creature,
large creature mixed
{2$$ and $$armadillo|gorilla|sloth|fox|hippopotamus|squirrel|rhinoceros|hermit crab|ant|mantis|dragonfly|cicada|mosquito|scorpion|locust|wasp|beetle|grasshopper|cockroach|spider|anaconda|snake|cobra|venus flytrap|centipede|earthworm|frog|goat|rabbit|bear|kangaroo|cow|boar|hawk|chiken|vulture|crow},
scary creature with sharp teeth, grotesque bioweapon,
1girl,
girl is police, girl facing creature,
girl in foreground, creature in background,
cinematic lighting, night,
solo, over shoulder shot, cinematic framing, natural occlusion,
city, downtown,プロンプトもプログラミングコードのようになり楽しくなりますね。同じ絵でも場所や日時、季節を変えるだけで様々なシチュエーションが作れます。

