見出し画像

DALL·E 3 / ChatGPT / 生成人物を固定化するPrompt

DALL·E 3では、生成した画像内の特定の人物を固定化し、その人物の外見や特徴を維持したまま、服装や姿勢を変える画像を生成するには、次のようなプロンプトや手法を使用します。

手順

  1. 最初の画像を生成

    • 特定の外見を持つ人物を生成します。

    • 具体的な特徴(髪型、髪色、体型、顔の形など)を明確に記述したプロンプトを作成します。

例:

A professional office worker in Marunouchi, Tokyo. A young woman in her late 20s with medium-length straight black hair, fair skin, and wearing a simple white blouse and black skirt. She has a confident yet friendly expression.

英文Promptの方が精度高いです

特定の特徴をプロンプトで固定化

  • 続いて生成する画像でも、初回生成時に明確に記述した特徴を再度記述します。

  • 新たな画像では「服装」や「姿勢」に関する指示を追加しますが、人物の特徴(髪型や顔の形など)はプロンプトで維持します。

例:

The same woman as before. She is now wearing a casual red dress and is standing with her arms crossed. Keep her hairstyle, face, and general appearance consistent.

「同じ人物」という指示を強調

  • 「The same woman as before」や「Retain the appearance of the previous character」など、同一人物であることを明確に伝える表現を含めます。

画像の編集を行う(Inpainting機能)

  • 必要に応じて、DALL·EのInpainting(画像修正)機能を使用して、元画像の一部(服装や姿勢)だけを変更できます。

  • 特定の範囲を指定し、修正内容を記述します。


プロンプトの例

最初の生成

A professional office worker in Marunouchi, Tokyo. A young woman in her late 20s with medium-length straight black hair, fair skin, and a friendly yet professional expression. She is wearing a simple white blouse and black skirt, standing in an office environment.

A professional office worker in Marunouchi, Tokyo. A young woman in her late 20s with medium-length straight black hair, fair skin, and a friendly yet professional expression. She is wearing a simple white blouse and black skirt, standing in an office environment.

服装を変更

The same woman as before. She is now wearing a stylish blue pantsuit and holding a cup of coffee. Keep her hairstyle, facial features, and overall appearance consistent.

The same woman as before. She is now wearing a stylish blue pantsuit and holding a cup of coffee. Keep her hairstyle, facial features, and overall appearance consistent.

姿勢を変更

The same woman as before. She is now sitting at a desk, typing on a laptop. She is wearing a green blouse and white trousers. Retain her hairstyle, face, and general appearance.


The same woman as before. She is now sitting at a desk, typing on a laptop. She is wearing a green blouse and white trousers. Retain her hairstyle, face, and general appearance.


Inpaintingを利用する場合
特定の範囲(服装や背景)を選択し、プロンプトでその部分だけを変更します。

注意事項

  • 人物固定の限界: DALL·Eは完全に同一人物を再現することが得意ではありません。同じプロンプトで生成することで似た人物を再現できますが、個別の特徴を完璧に固定するのは難しい場合があります。

  • 画像保存と修正: 初回生成後、外見が似た人物を繰り返し生成するために、最初の画像を保存し、Inpaintingなどで細かく修正する手法が有効です。

  • 追加ツールの利用: 完全な人物固定を実現するために、Stable DiffusionやControlNetなど、より高度な制御が可能な画像生成モデルを併用する方法も検討できます。

Tip: DALL·Eの得意分野と限界を把握し、適切なプロンプトとツールを組み合わせることで、より良い結果が得られます。


いいなと思ったら応援しよう!