ChatGPTを旅の途中のプロンプトジェネレーターに変える

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 は高品質の画像を生成できるため、2 つの利点を組み合わせて、より包括的で豊富なコンテンツの作成を実現します。この包括的なコンテンツ生成方法により、テキストと画像を通じて同時により多くの情報とインスピレーションを得ることができます。

<<:  2時間で人間を超えることができます! DeepMind の最新 AI が 26 の Atari ゲームをスピードラン

>>:  マーク・アンドリーセン氏、AIが世界を救うと語る

ブログ    
ブログ    

推薦する

200以上の機械学習ツールを見て学んだこと

[[332582]]ビッグデータダイジェスト制作出典: huyenchip編集者: フィッシャー、ア...

...

...

Google の 10 秒動画生成モデルが世界記録を更新しました。 LLMは拡散モデルを終わらせ、その影響は第2世代のトップを圧倒する

AI ビデオ生成は、2024 年には次の最先端分野になる可能性があります。過去数ヶ月を振り返ると、R...

AIを活用して都市の建物の特性を識別し、地震などの災害に対するリスクを予測する

ビッグデータダイジェスト制作出典: サイエンスデイリー編集者: ジェーン人工知能は、ビジネスから工業...

Java プログラミング スキル - データ構造とアルゴリズム「バイナリ検索」

[[395207]]必要順序付けられた配列 {1,8,10,89,1000,1234} に対してバ...

米シンクタンクの報告書:中国のAI人材流出、大半が米国へ

中国のAI研究者の数は過去10年間で10倍に増加したが、そのほとんどは海外、主に米国に居住している。...

AIとディープラーニングはもはやハイエンドのビデオ監視アプリケーションに限定されたものではない

[[408248]]最近、ディープラーニング AI を活用したビデオ監視プロジェクトに携わったことが...

不意を突かれたGoogleの「人間の創造」の成功は恐ろしい!人類は歴史上最悪の失業の波に直面しています...

01不意を突かれた!今回、Google は「人間を作った」のです! 5月8日、Googleは毎年恒...

スマートドライビングが誕生してから10年経った今、なぜ理想的なビジネスモデルの実現が難しいのでしょうか?

[[420239]] 2011年7月14日、紅旗HQ3は長沙から武漢までの286キロの高速道路を疾...

有機構造の画像を分子構造に変換するトランスフォーマーベースの人工ニューラルネットワーク

人類は人工知能の時代に突入しています。化学もまた、ニューラル ネットワークのトレーニングに大量の定性...

...

NLP モデルは人間の言語を理解できないのでしょうか? Microsoft AdaTestはエラーの検出効率が5倍向上

自然言語処理 (NLP) モデルは人間の言語を理解できず、テキストを反対の意味として解釈しますが、こ...

データサイエンティストにとって最も重要なアルゴリズムと統計モデル

数年間この業界に携わってきたデータ サイエンティストとして、私は LinkedIn や QuoLa ...