オレとChatGPT

AIとの会話記録

Stable Diffusion の画像出力用プロンプト

ChatGPT で Stable Diffusion 用のプロンプトを出力させてみました。

ネタとして、あまりに早すぎますが、年賀状に使うイラストを出力させます。

プロンプトの参考URLとしてGoogleで Stable Diffusion プロンプト ガイド で検索して出てきた上位3件の URL を使い WebPilot プラグインを使用して出力しました。(今日は Browsing with Bing は上手く動きませんでした。)

出力した貰ったプロンプトの後で、camenduru/stable-diffusion-webui-colab: stable diffusion webui colab の CompVis/stable-diffusion-v-1-4-original を使って出力した画像 *1 で作成した画像を載せてあります。

オレ

Stable Diffusion で辰年の年賀状用のイラストを作成するプロンプトとネガティブプロンプトを考えて下さい。


Model GPT-4: Enabled plugins:WebPilot

Used WebPilot

Used WebPilot

Used WebPilot

以下に、Stable Diffusionを用いて辰年の年賀状用のイラストを作成するためのプロンプトとネガティブプロンプトを提案します。これらのプロンプトは、参考にしたガイドに基づいて作成されています。

プロンプト

  1. コアプロンプト: "A dragon"
  2. スタイル: "in the style of a traditional Japanese painting"
  3. アーティスト: "Hokusai"
  4. 仕上げの作業: "with New Year decorations, highly-detailed, vibrant colors"
  5. プロンプトの重み付け: "A dragon:1 | in the style of a traditional Japanese painting:0.8 | Hokusai:0.7 | with New Year decorations, highly-detailed, vibrant colors:0.9"

これらを組み合わせると、以下のようなプロンプトになります。

"A dragon in the style of a traditional Japanese painting by Hokusai with New Year decorations, highly-detailed, vibrant colors"

ネガティブプロンプト

  1. "dark colors:-1.0"
  2. "abstract style:-1.0"
  3. "modern style:-1.0"
  4. これらを組み合わせると、以下のようなネガティブプロンプトになります。

"| dark colors:-1.0, abstract style:-1.0, modern style:-1.0"

これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、新年の装飾が施され、詳細に描かれた鮮やかな色彩の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイルを避けることができます。



オレ

強調構文は()でくくって下さい。


Model GPT-4: Enabled plugins:WebPilot

了解しました。以下に、強調構文を使用してプロンプトとネガティブプロンプトを修正します。

プロンプト

  1. コアプロンプト: "(A dragon)"
  2. スタイル: "(in the style of a traditional Japanese painting)"
  3. アーティスト: "(Hokusai)"
  4. 仕上げの作業: "(with New Year decorations, highly-detailed, vibrant colors)"
  5. プロンプトの重み付け: "(A dragon:1 | in the style of a traditional Japanese painting:0.8 | Hokusai:0.7 | with New Year decorations, highly-detailed, vibrant colors:0.9)"

これらを組み合わせると、以下のようなプロンプトになります。

"(A dragon) (in the style of a traditional Japanese painting) by (Hokusai) (with New Year decorations, highly-detailed, vibrant colors)"

ネガティブプロンプト

  1. "(dark colors:-1.0)"
  2. "(abstract style:-1.0)"
  3. "(modern style:-1.0)"

これらを組み合わせると、以下のようなネガティブプロンプトになります。

"| (dark colors:-1.0), (abstract style:-1.0), (modern style:-1.0)"

これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、新年の装飾が施され、詳細に描かれた鮮やかな色彩の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイルを避けることができます。



オレ

ネガティブプロンプトは書きたくないものを指定するので、-1.0 とする必要はありません。


Model GPT-4: Enabled plugins:WebPilot

すみません、その点を見落としていました。ネガティブプロンプトは、生成したくない要素を指定するためのもので、そのためには重み付けの "-1.0" は不要です。以下に修正したネガティブプロンプトを示します。

ネガティブプロンプト

  1. "(dark colors)"
  2. "(abstract style)"
  3. "(modern style)" これらを組み合わせると、以下のようなネガティブプロンプトになります。

"| (dark colors), (abstract style), (modern style)"

これらのネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイルを避けることができます。



オレ

幾つか画像を生成してみましたが、もう少し正月を思わせるアイテムを具体的に指定した方が良いと思います。また文字は入れたくないので、できるだけ文字が入らないようにネガティブプロンプトで工夫してください。


Model GPT-4: Enabled plugins:WebPilot

了解しました。正月を思わせるアイテムとしては、鳥居、鈴、獅子舞、門松、お雑煮、鏡餅などがあります。これらをプロンプトに追加し、文字が入らないようにネガティブプロンプトも追加します。

プロンプト

  1. コアプロンプト: "(A dragon)"
  2. スタイル: "(in the style of a traditional Japanese painting)"
  3. アーティスト: "(Hokusai)"
  4. 仕上げの作業: "(with New Year decorations like torii gate, bell, lion dance, kadomatsu, ozoni, and kagami mochi, highly-detailed, vibrant colors)"
  5. プロンプトの重み付け: "(A dragon:1 | in the style of a traditional Japanese painting:0.8 | Hokusai:0.7 | with New Year decorations like torii gate, bell, lion dance, kadomatsu, ozoni, and kagami mochi, highly-detailed, vibrant colors:0.9)"

これらを組み合わせると、以下のようなプロンプトになります。

"(A dragon) (in the style of a traditional Japanese painting) by (Hokusai) (with New Year decorations like torii gate, bell, lion dance, kadomatsu, ozoni, and kagami mochi, highly-detailed, vibrant colors)"

ネガティブプロンプト

  1. "(dark colors)"
  2. "(abstract style)"
  3. "(modern style)"
  4. "(any text or letters)"

これらを組み合わせると、以下のようなネガティブプロンプトになります。

"| (dark colors), (abstract style), (modern style), (any text or letters)"

これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、新年の装飾が施され、詳細に描かれた鮮やかな色彩の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイル、そして任意のテキストや文字を避けることができます。



オレ

良い感じですが、あくまで龍が主体ですので、複雑な小物は要れない方が良いと思います。日の出、富士、大凧のような龍と組み合わせて違和感のないアイテムにしてください。全体的な印象が暗すぎますのでもう少し明るく華やかになるようにプロンプトを工夫して下さい。


Model GPT-4: Enabled plugins:WebPilot

了解しました。龍が主体で、日の出、富士、大凧のようなアイテムを含め、全体的に明るく華やかな印象を持つイラストを目指すためのプロンプトを以下に示します。

プロンプト

  1. コアプロンプト: "(A vibrant and majestic dragon)"
  2. スタイル: "(in the style of a traditional Japanese painting)"
  3. アーティスト: "(Hokusai)"
  4. 仕上げの作業: "(with elements of sunrise, Mount Fuji, and a large kite, highly-detailed, bright and festive colors)"
  5. プロンプトの重み付け: "(A vibrant and majestic dragon:1 | in the style of a traditional Japanese painting:0.8 | Hokusai:0.7 | with elements of sunrise, Mount Fuji, and a large kite, highly-detailed, bright and festive colors:0.9)"
  6. これらを組み合わせると、以下のようなプロンプトになります。

"(A vibrant and majestic dragon) (in the style of a traditional Japanese painting) by (Hokusai) (with elements of sunrise, Mount Fuji, and a large kite, highly-detailed, bright and festive colors)"

ネガティブプロンプト

  1. "(dark colors)"
  2. "(abstract style)"
  3. "(modern style)"
  4. "(any text or letters)"
  5. "(small and complex objects)"

これらを組み合わせると、以下のようなネガティブプロンプトになります。

"| (dark colors), (abstract style), (modern style), (any text or letters), (small and complex objects)"

これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、日の出、富士山、大凧の要素が含まれ、詳細に描かれた明るく華やかな色彩の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイル、任意のテキストや文字、そして小さく複雑なオブジェクトを避けることができます。



オレ

いくつか画像を生成しましたが、龍が西洋の竜になっているものがあります。龍には竜とは違い羽はありません。体も細長いです。Chinese Dragon と指定し、羽など不必要な要素を取り除くよう工夫したプロンプトとネガティブプロンプトを考えて下さい。


Model GPT-4: Enabled plugins:WebPilot

了解しました。龍が西洋の竜にならないように、"Chinese Dragon" を指定し、羽やその他の不必要な要素を取り除くようにプロンプトとネガティブプロンプトを修正します。

プロンプト

  1. コアプロンプト: "(A vibrant and majestic Chinese dragon)"
  2. スタイル: "(in the style of a traditional Japanese painting)"
  3. アーティスト: "(Hokusai)"
  4. 仕上げの作業: "(with elements of sunrise, Mount Fuji, and a large kite, highly-detailed, bright and festive colors)"
  5. プロンプトの重み付け: "(A vibrant and majestic Chinese dragon:1 | in the style of a traditional Japanese painting:0.8 | Hokusai:0.7 | with elements of sunrise, Mount Fuji, and a large kite, highly-detailed, bright and festive colors:0.9)"

これらを組み合わせると、以下のようなプロンプトになります。

"(A vibrant and majestic Chinese dragon) (in the style of a traditional Japanese painting) by (Hokusai) (with elements of sunrise, Mount Fuji, and a large kite, highly-detailed, bright and festive colors)"

ネガティブプロンプト

  1. "(dark colors)"
  2. "(abstract style)"
  3. "(modern style)"
  4. "(any text or letters)"
  5. "(small and complex objects)"
  6. "(wings)"
  7. "(western dragon)"

これらを組み合わせると、以下のようなネガティブプロンプトになります。

"| (dark colors), (abstract style), (modern style), (any text or letters), (small and complex objects), (wings), (western dragon)"

これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、日の出、富士山、大凧の要素が含まれ、詳細に描かれた明るく華やかな色彩の中国の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイル、任意のテキストや文字、小さく複雑なオブジェクト、羽、そして西洋の竜を避けることができます。



オレ

全体的に良い感じです。日の出等の要素は必須ではないので、適宜1,2個選んで3通りのプロンプトを指定して下さい。ネガティブプロンプトは共通にしてください。また(A vibrant and majestic Chinese dragon) ではなく(A vibrant and majestic Chinese dragon:1.1) のようにしてください。また強調が必要ない物は()で囲わなくて大丈夫です。


Model GPT-4: Enabled plugins:WebPilot

了解しました。以下に、指定された要件に基づいて3つのプロンプトと共通のネガティブプロンプトを作成します。

プロンプト1

"A vibrant and majestic Chinese dragon:1.1 in the style of a traditional Japanese painting by Hokusai with elements of sunrise, highly-detailed, bright and festive colors"

プロンプト2

"A vibrant and majestic Chinese dragon:1.1 in the style of a traditional Japanese painting by Hokusai with elements of Mount Fuji, highly-detailed, bright and festive colors"

プロンプト3

"A vibrant and majestic Chinese dragon:1.1 in the style of a traditional Japanese painting by Hokusai with elements of a large kite, highly-detailed, bright and festive colors"

共通のネガティブプロンプト

"| dark colors, abstract style, modern style, any text or letters, small and complex objects, wings, western dragon

"これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、日の出、富士山、大凧の要素がそれぞれ含まれ、詳細に描かれた明るく華やかな色彩の中国の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイル、任意のテキストや文字、小さく複雑なオブジェクト、羽、そして西洋の竜を避けることができます。



オレ

A vibrant and majestic Chinese dragon:1.1 でなく (A vibrant and majestic Chinese dragon:1.1 ) です。


Model: Plugins•Enabled plugins:

すみません、その点を見落としていました。以下に修正したプロンプトを示します。

プロンプト1

"(A vibrant and majestic Chinese dragon:1.1) in the style of a traditional Japanese painting by Hokusai with elements of sunrise, highly-detailed, bright and festive colors"

プロンプト2

"(A vibrant and majestic Chinese dragon:1.1) in the style of a traditional Japanese painting by Hokusai with elements of Mount Fuji, highly-detailed, bright and festive colors"

プロンプト3

"(A vibrant and majestic Chinese dragon:1.1) in the style of a traditional Japanese painting by Hokusai with elements of a large kite, highly-detailed, bright and festive colors"

共通のネガティブプロンプト

"| dark colors, abstract style, modern style, any text or letters, small and complex objects, wings, western dragon"

これらのプロンプトとネガティブプロンプトを使用することで、伝統的な日本画風で、日の出、富士山、大凧の要素がそれぞれ含まれ、詳細に描かれた明るく華やかな色彩の中国の龍のイラストを作成することができます。また、ネガティブプロンプトを使用することで、暗い色、抽象的なスタイル、現代的なスタイル、任意のテキストや文字、小さく複雑なオブジェクト、羽、そして西洋の竜を避けることができます。


感想

なかなか、思ったような画像を出すプロンプトを出力してもらうのは難しいです。プロンプトの中に Hokusai という単語があり、これの影響で似たような画像しかでないように思えました。

ランダムに色々書いた貰うにはこういった単語を避けてもらうように指示した方がよいかもしれません。

*1:出力パラメータディフォルト Batch size 4 Batch count 4