Scribble at 2024-11-16 08:28:49 Last modified: 2024-11-16 08:33:35

添付画像

Prompt: (no human, ultra detailed, outdoors, very wide shot, perspective, scene, scenary, from below:1.5), stunning modern urban upscale environment, ultra realistic, concept art, elegant, extremely detailed, intricate, sharp focus, depth of field, professionally color graded, volumetric fog, HDR, 32K, 16K, professional photograph with Nikon D90, Nikon AF-S 24-70mm f/2.8E ED VR, movie promotional poster, vibrant details, (in style of Noah Bradley:1.2) BREAK (A serene lagoon at dawn, with mist hovering over the water's surface, The sky is painted in soft pinks and oranges, while the lush green islands are reflected in the calm water, The atmosphere is tranquil, evoking a sense of peace and new beginnings:1.5) <lora:hyperdetailer_v080:0.7>

Negative prompt: (nsfw, nude:1.5), easynegative, FastNegativeV2, an7-neg, badquality, nncursedV0, NegfeetV2, CR1.2-neg, verybadimagenegative_v1.3, ng_deepnegative_v1_75t

Steps: 15, Sampler: DDIM, Schedule type: Automatic, CFG scale: 7.5, Seed: 4164311463, Size: 1920x1080, Model hash: 0bbe3f1aa3, Model: landscapebingV10, VAE hash: 500ea30284, VAE: vae-ft-mse-840000-ema-pruned_fp16.safetensors, Lora hashes: "hyperdetailer_v080: 05dfb0659165", Version: v1.10.1

Stable Diffusion で使うプロンプトには、自分で一つずつキーワードを指定する方法と、dynamic prompt という拡張機能を使って自動入力する方法とがある。また、wildcard を使ったマクロのような入力方法もあるので、プロンプトのバリエーションはそれなりに多い。dynamic prompt を使うと、画像を生成するたびに、wildcard ファイルに1行ずつ記述してあるキーワード群から一つを選び出して適用してくれる。これは規則性を指定できるので、1行目から順番に選ばせたり、ランダムに選ばせたりできる。

こういう wildcard は Civitai.com のような大手のサイトでも配布されているが、プライベートで幾らでも作れるし、その方が圧倒的にバリエーションは多くなる。そして、配布されている wildcard の場合はキーワードの中に意図しない要素が含まれていたりするので、それを除外したり negative prompt で打ち消すのが面倒だから、僕は他人が作った wildcard は目的がはっきりしていてキーワードがシンプルに(そしてバリエーションは多い)なっているものだけを使わせてもらっていて、あとは LM Studio で作っている。

一時期は ChatGPT に出力させる人が多かったのだが、ChatGPT はレスポンスが遅いし、使う人が多くなってきてレスポンスしない場合もあるし、そもそもレスポンスの品質を上げようとすると有償になったり、使えるトークンに制限があったりと、実際には使いづらい。いまでは、Stable Diffusion のプロンプトを自作する人で ChatGPT を使ってる人なんていないだろう。

それから、こういうものは単なるテキスト・データであるから、誰の著作権があるわけでもなし、せっかく大量に出力したのであれば公開して共有することにも多少の意義はあろう。なので、あるていどの分量が揃ったら、当サイトでも公開する予定だ。背景に特化したキーワードの一式なら、サンプルとして出力した画像を添付すれば参考になるだろう。

一例を示すと、上のような画像(これは僕のマシンで出力したものだ。最新の SDXL や SD3 ではないが、これくらいの品質の画像が出せるなら SD1.5 でも十分だろう)だと、情景を描写している "A serene lagoon at dawn, with mist hovering over the water's surface, The sky is painted in soft pinks and oranges, while the lush green islands are reflected in the calm water, The atmosphere is tranquil, evoking a sense of peace and new beginnings" という箇所が wildcard から選んで挿入したキーワード一式となっている。ここを切り替えると別の情景が出力できるというわけである。

  1. もっと新しいノート <<
  2. >> もっと古いノート

冒頭に戻る