tips
注目
15 2025年1月4日

プロンプトエンジニアリング・マスタークラス:驚くべきAI画像のための10のプロテクニック

プロのAIアーティストが使用する正確なプロンプト公式を学びましょう。レイヤー記述からCFG最適化まで—即座に結果を向上させます。

#prompt engineering#advanced#techniques#professional#FLUX

CreateIO Team

@CreateIOai
この記事をシェア:
基本的なプロンプトと最適化されたプロンプトの比較

平凡なAI画像と傑作の違いは、多くの場合、プロンプトという一つの要素に帰結します。プロのAIアーティストたちは、常に素晴らしい結果を生み出すプロンプトエンジニアリングへの体系的なアプローチを開発してきました。このマスタークラスでは、彼らが使用する正確なテクニックを公開します。

完璧なプロンプトの解剖学

FLUX 2.0のような最新のAIモデルは、複数のレイヤーを持つ複雑で構造化されたプロンプトを理解できます。プロフェッショナルが使用するフレームワークはこちらです:

[コアサブジェクト] + [環境] + [スタイル参照] +
[照明仕様] + [技術パラメータ] + [ムード/雰囲気]

各テクニックを詳しく見ていきましょう。

テクニック1:レイヤード空間記述

シーンを平面画像として説明する代わりに、深度レイヤーで考えましょう:

基本プロンプト:

"A warrior in ruins"

レイヤードプロンプト:

"A battle-worn samurai warrior (foreground), standing among ancient temple ruins (midground), beneath a stormy sky with lightning strikes (background), volumetric fog between layers"

AIは空間的関係を理解し、それに応じて要素を構成します。

レイヤーキーワード:

  • 前景:「in front」「close to camera」「prominent」
  • 中景:「middle distance」「central focus」
  • 背景:「distant」「horizon」「far away」

テクニック2:強調によるウェイトコントロール

ほとんどのAIプラットフォームは、要素の重要性を高めたり減らしたりする強調構文をサポートしています:

構文のバリエーション:

  • FLUX/SD:(detailed eyes:1.3) - 30%強調
  • Midjourney:detailed eyes::1.3
  • DALL-E:重要な単語を繰り返すか大文字を使用

例:

Portrait of a young woman, (piercing blue eyes:1.4),
(flowing red hair:1.2), soft lighting, (sharp focus:1.3)

ウェイトガイドライン:

ウェイト効果
0.5-0.8控えめな存在感
1.0通常
1.2-1.5強い強調
1.6+アーティファクトのリスク

テクニック3:戦略的ネガティブプロンプト

ネガティブプロンプトはポジティブプロンプトと同様に重要です。体系的なネガティブプロンプトライブラリを構築しましょう:

汎用ネガティブ:

blurry, low quality, distorted, deformed, ugly,
duplicate, morbid, mutilated, poorly drawn,
bad anatomy, wrong anatomy, extra limbs,
missing limbs, floating limbs, disconnected limbs,
mutation, mutated, disgusting, watermark, text,
signature, cropped, worst quality, jpeg artifacts

カテゴリ別の特定ネガティブ:

ポートレート用:

cross-eyed, asymmetric face, bad teeth,
closed eyes (if unwanted), blemishes

用:

extra fingers, fewer fingers, fused fingers,
long fingers, bad hands, mutated hands

風景用:

oversaturated, unnatural colors, lens flare (if unwanted),
chromatic aberration

テクニック4:アーティスト参照によるスタイルアンカリング

特定のアーティストやアートムーブメントを参照してスタイルを固定します:

直接参照:

"in the style of Makoto Shinkai, cinematic lighting"

ムーブメント参照:

"art nouveau illustration, Alphonse Mucha inspired, ornate borders"

スタジオ参照:

"Studio Ghibli aesthetic, hand-painted feel, whimsical"

プロのヒント: ユニークなブレンドのために複数の参照を組み合わせる:

"Cyberpunk city, combining Blade Runner aesthetics with Studio Ghibli color palette"

テクニック5:CFGスケールの最適化

CFG(Classifier-Free Guidance)スケールは、AIがプロンプトにどれだけ厳密に従うかを決定します:

CFG範囲最適用途特徴
1-3抽象的、クリエイティブ非常に緩い解釈
4-7一般用途バランスの取れた創造性
8-12正確なコントロール強いプロンプト遵守
13+ほとんど使用しない過処理、アーティファクト

「スイートスポット」の公式:

  • 芸術的画像:CFG 5-6
  • フォトリアリスティック:CFG 6-8
  • テキスト重視:CFG 7-10
  • 実験的:CFG 3-4

テクニック6:サンプラー選択戦略

異なるサンプラーは、同一のプロンプトでも異なる結果を生み出します:

推奨サンプラー:

サンプラー強み最適用途
DPM++ 2M Karrasディテール、安定性デフォルト選択
Euler a速度、創造性素早い反復
DPM++ SDE Karras滑らかなグラデーションポートレート、肌
DDIM一貫性顔の生成
UniPC速度+品質プロダクション作業

ステップの相関:

  • 20ステップ:高速プレビュー
  • 30ステップ:良い品質
  • 50ステップ:最大ディテール
  • 100+ステップ:収穫逓減

テクニック7:LoRAとモデルファインチューニング

LoRA(Low-Rank Adaptations)はベースモデルに専門知識を追加します:

効果的なLoRAの使用:

<lora:specific_style:0.7> base prompt here

ウェイトの推奨:

  • 0.6-0.7から開始
  • 効果が微妙な場合は徐々に増加
  • アーティファクトが現れたら減少
  • 複数のLoRAは低いウェイトで組み合わせる(各0.4-0.5)

スタッキング公式:

<lora:style_lora:0.5><lora:character_lora:0.6>
Your detailed prompt here

テクニック8:構図ディレクティブ

特定のフレーミング指示でAIの構図をガイドします:

ショットタイプ:

  • エクストリームクローズアップ:「ECU, macro shot, filling frame」
  • クローズアップ:「head and shoulders, portrait crop」
  • ミディアムショット:「waist up, cowboy shot」
  • フルショット:「full body, head to toe」
  • ワイドショット:「establishing shot, environmental portrait」
  • エクストリームワイド:「aerial view, vast landscape」

カメラアングル:

  • アイレベル:自然、親しみやすい
  • ローアングル:力強い、威圧的
  • ハイアングル:脆弱、俯瞰
  • ダッチアングル:緊張、不安
  • バーズアイ:全知的、パターン重視
  • ワームズアイ:劇的、記念碑的

例:

Low angle shot, heroic pose, looking up at the subject,
dramatic sky behind, wide angle lens distortion

テクニック9:照明仕様

照明は画像を作るか壊すかを決めます。具体的に指定しましょう:

自然光:

  • ゴールデンアワー:暖かい、長い影、オレンジトーン
  • ブルーアワー:涼しい、幻想的、紫青トーン
  • 曇り:柔らかい、拡散、強い影なし
  • 厳しい正午:高コントラスト、最小の影

スタジオ照明:

  • レンブラント:頬に三角形の光
  • スプリット照明:顔の半分が照らされる
  • バタフライ:鼻の下に影
  • リム照明:エッジがバックライト、シルエット効果

雰囲気照明:

  • ボリュメトリック:可視光線、埃っぽい雰囲気
  • ネオン:色付きの人工光、反射
  • キャンドルライト:暖かい、揺らめく、親密

高度な例:

Portrait with Rembrandt lighting, soft key light from 45 degrees,
subtle fill light, dramatic rim light separating subject from
dark background, catchlights in eyes

テクニック10:反復的改良ワークフロー

最も重要なテクニック:体系的な反復。

フェーズ1:コンセプト(3-5世代)

  • シンプルなプロンプト、コアアイデアをテスト
  • 異なるシードを試す
  • 有望な方向を特定

フェーズ2:スタイルロック(5-10世代)

  • スタイル仕様を追加
  • 満足したらシードをロック
  • ディテールを反復

フェーズ3:ポリッシュ(10-20世代)

  • ウェイトを微調整
  • 照明を調整
  • 構図を完璧に

フェーズ4:バリエーション(5-10世代)

  • マイナーなシード変更
  • 色の代替案を探索
  • 最終選択用の選択肢を生成

ドキュメントテンプレート:

Prompt v1: [基本プロンプト]
Result: [観察]
Changes: [次に試すこと]

Prompt v2: [修正プロンプト]
Result: [観察]
...満足するまで続ける

すべてをまとめる:完全な例

プロフェッショナルなプロンプトをステップバイステップで構築しましょう:

目標: エルフの女王の幻想的なポートレート

ステップ1 - コアサブジェクト:

"An elf queen"

ステップ2 - ディテールを追加:

"An elegant elf queen with silver hair and pointed ears"

ステップ3 - 環境:

"An elegant elf queen with silver hair and pointed ears, standing in an ancient forest throne room"

ステップ4 - スタイル:

"An elegant elf queen with silver hair and pointed ears, standing in an ancient forest throne room, fantasy art style, inspired by Alan Lee and Brian Froud"

ステップ5 - 照明:

"An elegant elf queen with silver hair and pointed ears, standing in an ancient forest throne room, fantasy art style, inspired by Alan Lee and Brian Froud, ethereal backlighting through canopy, volumetric light rays, bioluminescent accents"

ステップ6 - テクニカル + ムード:

"An elegant elf queen with silver hair and pointed ears, standing in an ancient forest throne room, fantasy art style, inspired by Alan Lee and Brian Froud, ethereal backlighting through canopy, volumetric light rays, bioluminescent accents, regal and mysterious atmosphere, highly detailed, 8K resolution, sharp focus"

ウェイト付き最終版:

"(elegant elf queen:1.2) with flowing silver hair and delicate pointed ears, standing in an (ancient forest throne room:1.1) with living wood architecture, fantasy art style, inspired by Alan Lee and Brian Froud, (ethereal backlighting:1.3) through forest canopy, volumetric god rays, subtle bioluminescent flora, regal and mysterious atmosphere, highly detailed, 8K resolution, (sharp focus:1.2)"

ネガティブプロンプト:

"modern elements, technology, blurry, bad anatomy, extra limbs, disfigured, poorly drawn face, mutation, deformed, ugly, low quality, worst quality, jpeg artifacts, watermark"


クイックリファレンス:プロンプトチェックリスト

生成前に、プロンプトに以下が含まれているか確認:

  • ディテール付きの明確なサブジェクト
  • 空間的/環境的コンテキスト
  • スタイル参照(アーティスト/ムーブメント)
  • 具体的な照明の説明
  • 構図/フレーミングディレクティブ
  • ムード/雰囲気キーワード
  • 技術品質用語
  • 適切なウェイト
  • 包括的なネガティブプロンプト

これらのテクニックを適用する準備はできましたか?CreateIO Studioを開くで、プロフェッショナルグレードのプロンプトを試してみましょう。

CreateIO Team

@CreateIOai

公開日 2025年1月4日

この記事をシェア:

AI創作を始める準備はできましたか?

CreateIOはFLUX、DALL-Eなどの最高のAIモデルを提供し、バッチ生成、スタイルカスタマイズ、画像編集をサポートします。