【プロンプト解説】Midjourneyで絵本風の画像を生成する方法

Midjourneyで最適なプロンプトを入力することによって絵本風の画像を生成することができます。今回PROMPTYでは絵本風の画像を生成するプロンプトを紹介したいと思います。

基本プロンプト

{画像の対象物}, picturesque style --ar 4:3

今回は例として、「森の中で遊ぶ子供たち=Children playing in the forest」についての絵本風画像を生成したいと思います。

プロンプト:

children playing in the forest, picturesque style --ar 4:3

生成できた画像はこちら。

プロンプト通り、絵本風の「森の中で遊ぶ子供たち」の画像を生成することができました。特に左上の画像は子供たちが遊ぶ躍動感を上手に表現できています。

ChatGPTで生成した物語で絵本を作ってみる

次にChatGPTを用いて物語を作り、それに対する画像を生成してみたいと思います。今回ChatGPTにs入力したプロンプトは以下の通りです。

プロンプト(modelはGPT-4を使用)

これから短編の絵本を作成します。子供向けに分かりやすい短い絵本の物語を作成してください。物語は5つの状況に分けてそれぞれ考えてください。

出力された物語がこちら。

出力文:

タイトル:森の音楽会

【状況1】森の仲間たちの出会い
森の中で、リスのリンちゃん、ウサギのユウくん、クマのモモちゃん、キツネのカイくんが遊んでいました。みんなは仲良しで、いつも一緒に遊んでいたのです。

【状況2】音楽会の企画
ある日、リンちゃんがみんなに提案しました。「みんなで音楽会を開こうよ!森の仲間たちに楽しい時間を提供しよう!」みんなはそのアイデアに賛成し、準備を始めました。

【状況3】役割分担と練習
ユウくんはフルートを、リンちゃんはヴァイオリンを、モモちゃんはトライアングルを、カイくんはドラムを担当することになりました。みんなは毎日練習して、上手になろうと努力しました。

【状況4】音楽会の当日
ついに音楽会の日がやってきました。森の動物たちが集まって、興奮して待っていました。リンちゃんたちのグループは、美しい音楽を演奏して、みんなを楽しませました。

【状況5】成功の喜びと友情
音楽会は大成功で、みんなが拍手喝采しました。リンちゃんたちは喜びを分かち合い、さらに友情が深まりました。そして、森の動物たちにも、音楽の素晴らしさを伝えることができました。

今回はDeepLを用いてこれらの文章を英訳しました。

Title: Concert in the Forest

Situation 1: Encounter of friends in the forest
Rin, a squirrel, Yu, a rabbit, Momo, a bear, and Kai, a fox, were playing in the forest. They were good friends and always played together.

Situation 2: Planning a Concert
One day, Rin-chan made a proposal to everyone. Let's hold a concert for everyone! Let's give our forest friends a good time!" Everyone agreed to the idea and began preparations.

Situation 3: Division of Roles and Practice
Chloe was to play the flute, Rin the violin, Momo the triangle, and Kai the drums. Everyone practiced every day and worked hard to become better.

Situation 4: The day of the concert
The day of the concert finally arrived. The animals of the forest gathered and waited excitedly. Lynn and her group played beautiful music and entertained everyone.

Situation 5: Joy of Success and Friendship
The concert was a great success and everyone applauded. Lynn and her friends shared their joy and their friendship grew even stronger. They were also able to share the beauty of music with the animals in the forest.

次に、これらのそれぞれのSituationに対応する画像を生成します。

まずは1枚目。

プロンプト:

Encounter of friends in the forest, Rin, a squirrel, Yu, a rabbit, Momo, a bear, and Kai, a fox, were playing in the forest. They were good friends and always played together, picturesque style --ar 4:3 --v 5.1 --s 750

これはSituation 1の文章をそのまま使用しました。生成された画像がこちら。

全ての登場人物が揃っているものは、左上の画像でしょうか。うまくいかない場合は何度か画像の再生成を行ってみてください。次にSituation 2に該当する写真を生成するために以下のプロンプトをMidjourneyに入力します。

プロンプト:

Planning a Concert, Rin, a squirrel, Yu, a rabbit, Momo, a bear, and Kai, a fox, were playing in the forest. They were good friends and always played together, One day Rin, a squirrel made a proposal to everyone. Let's hold a concert for everyone! Let's give our forest friends a good time!" Everyone agreed to the idea and began preparations, picturesque style --ar 4:3 --v 5.1 --s 750

上記のプロンプトはSituation1と2を組み合わせて作成しました。組み合わせないと各種登場人物の名前と物語が紐づかないからです。「Rin-chan」などの表記は「Rin, a squirrel」という風にMidjourneyが理解しやすいように補正を行いました。

同様にSituation 3〜5についてもプロンプトを作成して画像を生成してみました。

プロンプト:

Planning a Concert, Rin, a squirrel, Yu, a rabbit, Momo, a bear, and Kai, a fox, were playing in the forest. They were good friends and always played together, Chloe was to play the flute, Rin, a squirrel the violin, Momo, a bear the triangle, and Kai, a fox the drums. Everyone practiced every day and worked hard to become better, picturesque style --ar 4:3 --v 5.1 --s 750

生成できた画像がこちら。

完全に動物と弾いている楽器を物語と一致させるのは難しかったですが、実際に動物が楽器を弾く画像は生成できました。残りのSituationについても同様にプロンプトを組み合わせて画像を生成してみてください。