Skip to Content
生成AIのプロンプトエンジニアリング ―信頼できる生成AIの出力を得るための普遍的な入力の原則
book

生成AIのプロンプトエンジニアリング ―信頼できる生成AIの出力を得るための普遍的な入力の原則

by James Phoenix, Mike Taylor, 田村 広平, 大野 真一朗, 砂長谷 健, 土井 健, 大貫 峻平, 石山 将成
July 2025
Intermediate to advanced
484 pages
8h 8m
Japanese
O'Reilly Japan, Inc.
Content preview from 生成AIのプロンプトエンジニアリング ―信頼できる生成AIの出力を得るための普遍的な入力の原則

8章Midjourneyによる画像生成の標準的な手法

 本章では、標準的な手法を使用して、拡散モデルのさまざまな画像を生成する能力を最大限に引き出します。まず、画像生成に使用される一般的な手法を幅広く探るために、プロンプトを書き換えることから始めます。特に指定がない限り、すべての画像はMidjourney v5によって生成されています。本章で説明する手法は、将来のモデルやMidjourney v5以外の代替モデルにも転用できるように設計されています。

8.1 出力形式の修飾語

 画像生成における最も有用なベストプラクティスは、画像の出力形式を指定することです。画像生成モデルは、ストック写真から油絵、古代エジプトの象形文字まで、幅広い出力形式に対応しています。画像は指定された出力形式によって見た目が大きく異なり、生成される物体や人物のスタイルも変わります。学習データの多くはストック写真であり、これは画像生成においても商業的に最も重要な画像カテゴリーの1つです。

入力:

a stock photo of a business meeting
打ち合わせのストック写真

 図8-1に結果を示します。

図8-1 打ち合わせのストック写真

図8-1 打ち合わせのストック写真

 画像生成モデルは、Stable Diffusionのようなオープンソースモデルでは無料で、DALL-EやMidjourneyのような有料のモデルでは非常に低いコストで、ロイヤリティーフリーのストック写真を大量に生成できます。そのため、画像生成モデル自体がゲームチェンジャーと言えます。これらのモデルにより生成された画像は既存の画像に類似している場合もありますが、すべて唯一無二です。したがって、誰でも無料で利用でき、何度も再利用される可能性のあるストック写真よりも、希少価値があると言えます。また、画像生成モデルを利用すると、ストック写真の提供する出力形式に限定されることがありません。ブログ記事やWebサイトの画像としてより芸術的なものが好ましければ、基本的には制限なしにその要望を実現することができます。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

スクラム実践者が知るべき97のこと

スクラム実践者が知るべき97のこと

Gunther Verheyen, 吉羽 龍太郎, 原田 騎郎, 永瀬 美穂

Publisher Resources

ISBN: 9784814401246Publisher Website