見出し画像

画像生成AIのプロンプトはChatGPTに考えてもらうのがよさそう【DALL·E 2/Midjourney】

ChatGPT(GPT-4)に「おいしい食べ物を画像生成AIで出力するためのプロンプトを教えて」とお願いして出てきたプロンプトが以下です。

"Generate a high-resolution, mouth-watering image of a gourmet dish featuring seared salmon fillet topped with a zesty lemon herb sauce, accompanied by a colorful medley of grilled vegetables, including asparagus, bell peppers, and cherry tomatoes, artistically plated on a white, round ceramic plate with a sprig of fresh rosemary as garnish."

すごくふんわりした依頼から、とても詳細なプロンプトを出力してくれました。

これをDALL·E 2に食べさせた結果がこちら。

めちゃくちゃおいしそう。

このプロンプトを出力する前に、ChatGPTはこんなことを言っていました。

「OpenAIのDALL-Eやその後継機のような画像生成AIを使って美味しい料理の画像を生成するには、AIが望ましいアウトプットを出すように導く、詳細でクリエイティブなテキストプロンプトを提供する必要があります。」

なるほど。AIのことはAIがよく知っていると。

詳細でクリエイティブなプロンプトというのが前述のようなプロンプトを指すのだとすれば、これを人間がぱっと思いつくのは難しいはずです。

なので、プロンプトを入力する前に一度ChatGPTをかませて、より詳細なプロンプトを出力してもらうとよさそうですね、というお話でした。

もちろん具体的なシチュエーションが頭にある場合は話が異なりますが、そうではなくふんわりしたイメージから近しいものをたくさん出力してその中から選びたい、というケースではかなりの威力を発揮するのではないでしょうか。
さらにAPIを駆使して自動化して大量生産できたら、好みの画像を選び放題ですね。夢が広がります。

最後に、他の例も載せておきます。

"Create a tantalizing image of a classic Italian pizza with a thin, crispy crust, topped with rich tomato sauce, melted mozzarella cheese, fresh basil leaves, and juicy slices of pepperoni, served on a rustic wooden pizza peel, surrounded by a picturesque Italian countryside setting."

"Design a mouth-watering image of a gourmet dessert plate featuring a slice of decadent chocolate lava cake with a molten center, garnished with a dusting of powdered sugar and fresh raspberries, served alongside a scoop of creamy vanilla ice cream on a stylish square white plate."


この記事が参加している募集

#AIとやってみた

29,030件

この記事が気に入ったらサポートをしてみませんか?