Tips

ネガティブプロンプト解説:より良いAIアートの秘密

M
Mourad Z.AI & Prompt Engineering Specialist
2024年12月25日
6 分で読める

ネガティブプロンプトがどのように機能し、なぜAIアートに不可欠なのかを学びましょう。画像生成の結果を劇的に向上させる戦略を発見できます。

ネガティブプロンプト解説:より良いAIアートの秘密
共有:

ネガティブプロンプトとは?

ネガティブプロンプトは、AI画像生成器に画像に含めてほしくないものを伝えます。ポジティブプロンプトが望む要素を記述する一方で、ネガティブプロンプトは望まない要素を除外します。この一見シンプルなコンセプトが、AIアートの品質を劇的に向上させ、結果をより細かくコントロールできるようにします。

彫刻のように考えてください:ポジティブプロンプトは素材を加え、ネガティブプロンプトは不要な部分を削り取ります。両方が合わさって、あなたのビジョンを精密に形作ります。

ネガティブプロンプトの仕組み

AI画像生成器はノイズから始めて、プロンプトに向かって段階的に洗練することで画像を作成します。このプロセス中に:

ポジティブプロンプトはAIを特定の特徴に向かわせ、指定された要素を含むよう画像を推進します。

ネガティブプロンプトは特定の特徴から積極的に遠ざけ、望まない要素から生成を回避させます。

AIはこれらの相反する力のバランスを取り、望むものを強調しつつ望まないものを避ける画像を生成します。この二重ガイダンスシステムにより、ポジティブプロンプトだけよりもはるかに多くのコントロールが得られます。

プラットフォームサポート

異なるプラットフォームはネガティブプロンプトを異なる方法で処理します:

Stable Diffusion:完全なネガティブプロンプトサポート。品質の高い結果には不可欠です。ほとんどのインターフェースで別のテキストフィールドがあります。

Midjourney:別フィールドの代わりに--noパラメータを使用します。例:--no text, watermark, blur

DALL-E:ネイティブサポートが限定的です。表現の工夫で回避できることもありますが、他のプラットフォームほど効果的ではありません。

Leonardo AI:Stable Diffusionと同様の完全サポート。

このガイドは主にStable DiffusionとMidjourneyに焦点を当てています。これらのプラットフォームでネガティブプロンプトが最も大きな影響を持ちます。

PlatformSupport LevelHow to UseEffectiveness
Stable DiffusionFull supportSeparate text fieldVery High - essential for quality
MidjourneyParameter-based--no keyword1, keyword2High - effective but limited syntax
DALL-E 3LimitedPhrasing workaroundsModerate - less precise control
Leonardo AIFull supportSeparate text fieldHigh - similar to Stable Diffusion

Copy-Paste Starter Negative Prompts

Universal Quality Fix:

blurry, low quality, lowres, bad anatomy, bad hands, cropped, worst quality, jpeg artifacts, watermark, text, signature, deformed

For Portraits:

ugly, deformed face, extra fingers, mutated hands, poorly drawn face, extra limbs, long neck, cross-eyed, asymmetric eyes

For Landscapes:

people, text, watermark, buildings, cars, modern elements, power lines, signs, fences, lens distortion

必須ネガティブプロンプト

これらの基本的なネガティブプロンプトから始めましょう:

品質コントロール:
「blurry, low quality, low resolution, poorly drawn, bad anatomy, wrong anatomy, extra limbs, missing limbs, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, out of frame, out of focus」

アーティファクトとエラー:
「jpeg artifacts, compression artifacts, watermark, text, signature, username, logo, cropped, worst quality, normal quality」

手/顔の問題:
「bad hands, extra fingers, missing fingers, fused fingers, too many fingers, mutated hands, malformed hands, extra hands, bad face, asymmetric eyes, cross-eyed, deformed face」

これらのネガティブは最も一般的なAI画像生成の問題に対処し、ほぼすべてのプロンプトに含めるべきです。

スタイル固有のネガティブ

望むスタイルに合わせてネガティブを調整しましょう:

フォトリアリスティックな画像向け:
「cartoon, anime, drawing, painting, illustration, sketch, digital art, 3d render, cgi, unrealistic, fake, artificial」

アニメ/イラスト向け:
「photorealistic, realistic, photograph, photo, 3d, 3d render, hyperrealistic, real life, stock photo」

デジタルアート向け:
「photography, photograph, realistic, photorealistic, real, traditional art, oil painting, watercolor」

クリーンな背景向け:
「busy background, cluttered, noisy background, complex background, detailed background, distracting elements」

高度なネガティブプロンプト戦略

ネガティブプロンプティングをレベルアップしましょう:

ネガティブに重み付け:Stable Diffusionでは、ネガティブの用語に重みを付けて強調できます:(blurry:1.3)、(bad hands:1.5)。高い重みはそれらの要素をより積極的に回避します。

問題に具体的に対応:結果に望まない要素が現れたら、ネガティブに追加しましょう。不要な眼鏡が出る場合は「glasses, spectacles, eyewear」を追加。不要な帽子が出る場合は「hat, cap, headwear」を追加します。

意図しない連想に対抗:ポジティブプロンプトの一部の単語には意図しない連想があります。「fantasy warrior」で過剰な鎧が生成され続ける場合、ネガティブに「heavy armor, bulky armor」を追加しましょう。

同義語を使う:望まない要素のバリエーションをカバーしましょう。テキストなしの場合:「text, writing, words, letters, typography, font, caption, watermark, logo, signature」。

ネガティブプロンプトで一般的な問題を解決

問題:顔が歪む
追加:「deformed face, ugly face, bad proportions, asymmetric face, weird face, distorted features, bad eyes, crossed eyes」

問題:手足が余分または欠損
追加:「extra limbs, missing limbs, extra arms, extra legs, missing arms, missing legs, floating limbs, disconnected limbs, extra body parts」

問題:ぼやけたり低品質な出力
追加:「blurry, out of focus, bokeh, depth of field, soft focus, low resolution, pixelated, compression, artifacts, noise」

問題:望まないオブジェクトが出現
追加:望まないオブジェクトを具体的に名前で指定します。「no person, no animal, no building」または出現し続けるものを指定

問題:望まないスタイルが混入
追加:望まないスタイルを明示的に名前で指定します。リアリスティックなプロンプトにアニメ要素が現れる場合、「anime, cartoon, animated, cel-shaded」を追加

Midjourneyのネガティブプロンプト

Midjourneyは別のネガティブプロンプトフィールドの代わりに--noを使用します:

基本的な使い方:プロンプトの末尾に追加:--no text, watermark, blur

複数のネガティブ:カンマで区切ります:--no people, animals, vehicles, text

他のパラメータとの組み合わせ:
「beautiful landscape, mountains, sunset --ar 16:9 --v 6 --no people, buildings, text」

制限事項:Midjourneyの--noはStable Diffusionの完全なネガティブプロンプトよりも弱いです。抽象的な品質よりも具体的なオブジェクトの除外に最も効果的です。

ネガティブプロンプトテンプレートの構築

さまざまな目的のために再利用可能なネガティブプロンプトテンプレートを作成しましょう:

ポートレートテンプレート:
「blurry, bad anatomy, bad face, bad eyes, asymmetric eyes, deformed face, extra limbs, missing limbs, bad hands, extra fingers, missing fingers, cropped, out of frame, low quality, worst quality, text, watermark, signature」

風景テンプレート:
「blurry, low quality, oversaturated, undersaturated, text, watermark, people, person, human, buildings, man-made structures, cropped, out of frame, ugly, worst quality」

プロダクト撮影テンプレート:
「blurry, low quality, low resolution, bad lighting, harsh shadows, overexposed, underexposed, text, watermark, background objects, cluttered, busy background, worst quality」

アニメ/キャラクターテンプレート:
「photorealistic, realistic, 3d render, bad anatomy, extra limbs, missing limbs, bad hands, extra fingers, missing fingers, poorly drawn face, bad proportions, gross proportions, text, watermark, worst quality」

ヒントとベストプラクティス

必須から始めて追加する:基本的な品質ネガティブから始め、得られた結果に基づいて具体的なものを追加しましょう。

過負荷にしない:ネガティブプロンプトが多すぎるとAIを混乱させたり、予期しない結果につながる可能性があります。実際の問題に焦点を絞りましょう。

反復する:結果に基づいてネガティブを調整しましょう。望まないものが現れたら追加し、期待通りの結果が得られない場合は広すぎるネガティブを削除しましょう。

モデルに合わせる:異なるStable Diffusionモデルはネガティブに異なる反応を示します。あるモデルでうまくいくことが、別のモデルではうまくいかない場合があります。

まずネガティブなしでテストする:ベースラインの出力を理解することで、より良いネガティブを作成するのに役立つことがあります。

結論

ネガティブプロンプトは、AIアート生成において最も強力でありながら活用されていないツールの一つです。彫刻のようなコントロールを与えてくれます—望む要素を追加するのと同じくらい精密に、望まない要素を除去できます。

必須の品質ネガティブから始め、目標に基づいてスタイル固有の用語を追加し、結果に基づいて改善しましょう。時間が経つにつれて、どのネガティブがどの問題を解決するかという直感が養われます。

ネガティブプロンプトテンプレートの個人ライブラリを構築し、それらを改善し続けましょう。ネガティブプロンプトをマスターするための投資は、より良く、よりコントロール可能なAIアートという形で指数関数的に報われます。

M

Mourad Z.

AI & Prompt Engineering Specialist

Mourad is a prompt engineering specialist and co-founder of Reprompte. With deep expertise in AI image generation tools like Midjourney, Stable Diffusion, and DALL-E, he helps creators unlock the full potential of AI art through effective prompting techniques.

関連記事

素晴らしいプロンプトを作成する準備はできましたか?

無料のAIプロンプトジェネレーターでこれらのヒントを実践してください。アイデアを最適化されたプロンプトに即座に変換します。