ChatGPT をミッドジャーニー プロンプト ジェネレーターに変える

ChatGPT は Midjourney 画像生成のテンプレートとして使用できるとすでに誰かが結論付けています。この記事では、個々のユースケースに応じてこれらのヒントを作成する方法を示します。これにより、ChatGPT によって生成されるヒントをより制御しやすくなります。

プロンプトテンプレートの選択

Midjourney のテンプレートは非常に構造化されているため、ここでは次の構造を使用します。

ChatGPT を使ってみましょう

ChatGPT が機能するためには、Midjourney ヒントを生成できるように ChatGPT ヒントを作成する必要もあります。

ChatGPT のヒントが行うことは、ChatGPT が私たちの思考を反復処理し、それらに関連する画像ヒントを作成することです。私たちはアイデアやリクエストを ChatGPT に入力し、ChatGPT が機能するようにするだけです。

信頼性が高く効果的な ChatGPT プロンプトには、指示とコンテキストという 2 つの主要なコンポーネントがあります。

まずコンテキストから始めます。要件をプレフィックス、シナリオ、サフィックスに変換するだけです。

 #这是Midjourney的命令
 
 /imagine prompt: PREFIX, SCENE, SUFFIX
 
 PREFIX defines the image's medium and style
 SCENE defines the content
 SUFFIX modulates PREFIX and SCENE

次のステップでは、コンテキストと ChatGPT が情報を処理する方法に関する指示を組み合わせます。

 This is the basic prompt anatomy for image generation with Midjourney:
 
 /imagine prompt: PREFIX, SCENE, SUFFIX
 
 PREFIX defines the image's medium and style
 SCENE defines the content
 SUFFIX modulates PREFIX and SCENE
 
 Create 10 prompts that illustrate the theme "father-son relationship"

上記と以下の制限は ChatGPT の要件であり、ChatGPT は要件に従って結果を返します。おそらく次のような結果になります。

 1. /imagine prompt: Vintage sepia photograph, A father teaching his son how to ride a bicycle in a park, With a sense of warmth and nostalgia.
 
 2. /imagine prompt: Renaissance oil painting, A king passing his crown to his son in a lavish throne room, With an atmosphere of grandeur and responsibility.
 
 3. /imagine prompt: Animated family movie style, A dad and son building a rocket ship in their backyard, Infused with a sense of adventure and bonding.
 
 4. /imagine prompt: Watercolor sketch, A father and son fishing on a quiet lake as the sun sets, With a serene and tranquil atmosphere.
 
 5. /imagine prompt: Comic book art, A superhero father with his sidekick son saving the day, With dynamic action and a sense of camaraderie.
 
 6. /imagine prompt: Traditional Japanese Ukiyo-e style, A samurai father and his young son practicing martial arts under a cherry blossom tree, With a sense of discipline and tradition.
 
 7. /imagine prompt: 90s sitcom illustration, A dad and son laughing together while attempting to fix a car in a garage, With a vibe of humor and togetherness.
 
 8. /imagine prompt: Modern abstract art, An interpretation of the emotional bond between a father and son, With swirling colors that convey deep connection and love.
 
 9. /imagine prompt: Children’s book illustration, A boy on his father’s shoulders, looking up at the stars, With a sense of wonder and shared curiosity.
 
 10. /imagine prompt: Sci-fi concept art, A father and son in futuristic gear exploring an alien planet, With a sense of discovery and shared adventure.

これらのヒントをコピーして Midjourney に貼り付けるだけです。これらの結果の一部を次に示します。

上記は最も単純な ChatGPT の使用スキルですが、以下のより高度なアプリケーションも実行できます。

アイデアを広げる

ChatGPT はトレーニングに大規模なコーパスを使用するため、次のヒントのようにアイデアを拡張するのに役立ちます。

 keep theme, set prefix to "modern abstract art", 
 scene should contain metaphors (without explanations), 
 use suffix to implement lens and camera types. list 5 prompts

結果は次のとおりです。

 /imagine prompt: Modern abstract art, An anchor and a soaring kite entwined, With a fisheye lens capturing the circular interplay of stability and freedom.
 
 /imagine prompt: Modern abstract art, A torch casting shadows of successive taller figures, With a tilt-shift lens emphasizing the central flame as the source of growth.
 
 /imagine prompt: Modern abstract art, Rivers of color weaving from a storm to a calm sea, With a wide-angle lens to envelop the viewer in the journey.
 
 /imagine prompt: Modern abstract art, A lighthouse beam morphing into a tapestry of music notes, With a telephoto lens bringing focus to the distant harmony.
 
 /imagine prompt: Modern abstract art, Clock gears turning into an unfolding map, With a macro lens capturing the intricacies of time and adventure's intertwinement.

結果は次のとおりです。

ChatGPT出力の最適化

Midjourneyには以前の記事でも紹介したpermutationという機能があるので、次のメソッドを使用してChatGPTに対応する形式で結果を生成させることができます。

 This is the basic prompt anatomy for image generation with Midjourney:
 
 /imagine prompt: PREFIX, SCENE, SUFFIX
 
 PREFIX defines the image's medium and style
 SCENE defines the content
 SUFFIX modulates PREFIX and SCENE
 
 You can group variations in comma-separated lists like this:
 
 {PREFIX 1, PREFIX 2, PREFIX 3} or {SCENE 1, SCENE 2} or {SUFFIX 1, SUFFIX 2}
 
 Important: when using variations, each item in the list has to be a single word or a phrase without comma (otherwise we'd break the syntax)
 
 ###
 
 Create a prompt that illustrate the theme "father-son relationship". 
 Use 2 variations for prefix and 3 variations for suffix

その後、ChatGPT は次の結果を返します。

 /imagine prompt: {oil painting, watercolor}, a father teaching his son how to 
 ride a bike in a park, {with a touch of nostalgia, under a warm sunset, 
 captured in a moment of laughter}

したがって、このプロンプトを Midjourney にコピーすると、次の結果が得られます。

つまり、6 枚の画像を直接生成できます。結果の例は次のとおりです。

要約する

ChatGPT は大規模なコーパスによって学習された大規模な言語モデルであるのに対し、Midjourney は高品質の画像を生成でき、両者の利点を組み合わせることで、より包括的でリッチなコンテンツ作成を実現します。この包括的なコンテンツ生成方法では、言葉と画像を通じてより多くの情報とインスピレーションを同時に得ることができます。

https://avoid.overfit.cn/post/60d45f154b7943258f86f8bc7150e79b

トリスタン・ウルフ著

おすすめ

転載: blog.csdn.net/m0_46510245/article/details/131487502