私的AI研究会 > ComfyUI17b

画像生成AI「ComfyUI」17(実践編Ⅹ) == 編集中 ==

 「ComfyUI」を使ってローカル環境でのAI画像生成を検証する

▲ 目 次
※ 最終更新:2026/09/24 

『Krea 2』を検証する3

 「Krea 2」の実用的な活用例を考える

人物生成のもとになるファッション/スタイル シート

 人物の写っているスナップ写真から同じフォーマットのスタイルシートを生成する
 全身画像でない場合は、映っていない部分の服装などをプロンプトに記述する必要がある ※ 参考 → スナップ写真からスタイルシートを生成する場合の注意点

人物のポーズを変更するワークフロー

 元画像の人物を別の参照画像の人物のポーズに変更するワークフローを考える

参照画像とプロンプトによる画像編集(『JoyAI-Image Edit』と同じ条件で検証

 画像編集を参試してみる
 参考URL → https://note.com/sepiablue/n/nce6b6d20b6d0

  1. 参照画像1枚とプロンプトによる画像編集
    他のモデルでの生成画像
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1
    参照画像ワークフロー 8213_krea2_identity_edit.json.json
    woman7_m.jpg comfyui_A12_m.jpg
    編集内容プロンプト生成画像
    悲しい表情にする Change only her facial expression to a clearly sad and slightly worried expression with subtly furrowed eyebrows and a downturned mouth. Preserve her exact identity, eyes, hairstyle, hair color, outfit, pose, background, composition,style, and lighting. 8213_2026-08-13_00014_m.jpg
    彼女の表情だけを、眉をわずかに寄せ、口元を下げた、明らかに悲しげで少し心配そうな表情に変えてください。本人であること、目、髪型、髪色、服装、ポーズ、背景、構図、スタイル、照明はそのまま維持してください。
    目を閉じる Change only her eyes so that both eyes are gently and naturally closed. Preserve her exact identity, mouth and smile, hairstyle, hair color, outfit, pose, background, composition, style, and lighting. 8213_2026-08-13_00015_m.jpg
    目元だけを変更し、両目が優しく自然に閉じている状態にしてください。彼女の本人としての特徴、口元や笑顔、髪型、髪色、服装、ポーズ、背景、構図、スタイル、照明はそのまま維持してください。
    口を閉じる Change only her mouth so it is naturally closed with relaxed lips. Preserve her exact identity, eyes, facial shape, hairstyle, hair color, outfit, pose, background, composition, style, and lighting. 8213_2026-08-13_00016_m.jpg
    口元だけを変更し、唇の力を抜いて自然に閉じている状態にしてください。彼女の本人としての特徴、目、顔の輪郭、髪型、髪色、服装、ポーズ、背景、構図、スタイル、照明はそのまま維持してください。
    髪型をショートヘアにする Change only her hairstyle to short, straight short hair with the same bangs. Keep the original dark hair color. Preserve her exact identity, face, expression, outfit, pose, background, composition, style, and lighting. 8213_2026-08-13_00017_m.jpg
    彼女の髪型だけを、同じ前髪のまま、ストレートのショートヘアに変更してください。元の暗い髪色は維持してください。彼女の本人らしさ、顔立ち、表情、服装、ポーズ、背景、構図、スタイル、照明はそのまま残してください。
    髪を茶色にする Change only her hair color to warm chestnut brown, including the bun and loose strands. Preserve the exact hairstyle, identity, face, expression, outfit, hat, pose, background, composition, style, and lighting. 8213_2026-08-13_00018_m.jpg
    お団子や後れ毛を含め、彼女の髪の色だけを温かみのあるチェスナットブラウンに変更してください。髪型、本人らしさ、顔立ち、表情、服装, 帽子、ポーズ、背景、構図、スタイル、照明はそのまま維持してください。
    右手を上げる Raise the girl's right hand, located on the viewer's left, beside her head in a friendly open-palm wave. Preserve her exact identity, face, hairstyle, outfit, left arm, body position, background, composition, style, and lighting. 8213_2026-08-13_00019_m.jpg
    見る側から見て左側にいる少女の右手を、頭の横で手のひらを開いて親しげに振るポーズにしてください。その際、少女の容姿、顔立ち、髪型、服装、左腕、体の向き、背景、構図、画風、そして照明はそのまま維持してください。
    背景を海辺の砂浜にする Replace only the park background with a seaside setting—a sunny, white sandy beach with gentle waves and soft sunlight. Please preserve the girl's exact identity, face, hairstyle, expression, clothing, pose, scale, composition, and style. 8213_2026-08-13_00020_m.jpg
    公園の背景のみを海辺の風景(晴れた白い砂浜、穏やかな波、柔らかな日差し)に差し替えてください。その際、少女の容姿、顔立ち、髪型、表情、服装、ポーズ、サイズ感、構図、そして全体的なスタイルは、元のまま正確に維持してください。
    人物を横向きにする Turn the girl and her head 90 degrees so she is shown in a clean right-facing side profile, looking toward the right side of the image. Preserve her identity, hairstyle, outfit, background, style, and lighting. 8213_2026-08-13_00021_m.jpg
    少女とその頭部を90度回転させ、画像の右側を向いた、すっきりとした右向きの横顔になるようにしてください。その際、彼女の容貌、髪型、服装、背景、画風、そして照明の雰囲気を維持してください。
    人物を後ろ向きにする Please rotate the girl and her head 180 degrees to create a composition viewed from directly behind. Ensure the back of her hairstyle, hat, and clothing are visible, while her face remains hidden. Maintain the body posture, background, composition, style, and lighting exactly as they are. 8213_2026-08-13_00022_m.jpg
    少女とその頭部を180度回転させ、真後ろから見た構図にしてください。顔は見えないようにしつつ、髪型、帽子、服装の背面がしっかりと見えるようにします。体の姿勢、背景、構図、スタイル、照明は、そのまま維持してください。
    顔アップにする Change only the camera framing to a tight centered close-up portrait of her face, from the top of her hair to just below her chin. Preserve her exact identity, expression, hairstyle, hair color, style, lighting, and image quality. 8213_2026-08-13_00023_m.jpg
    カメラのフレーミングのみを変更し、彼女の顔を中央に据えたタイトなクローズアップ・ポートレート(髪の生え際から顎のすぐ下まで)にしてください。彼女の容貌、表情、髪型、髪色、スタイル、ライティング、画質はそのまま維持してください。
    引きの画角にする Zoom the camera far out to show the girl standing from head to toe in a full-body wide shot in the same background. Preserve her exact identity, face, hairstyle, clothing, style, lighting, and natural body proportions. 8213_2026-08-13_00024_m.jpg
    同じ背景で、少女の全身(頭から足先まで)が収まるワイドショットになるよう、カメラを大きく引いてください。その際、彼女の容姿、顔立ち、髪型、服装、スタイル、照明、そして自然な体型を正確に維持してください。
    花を持たせる Have the girl hold a small bouquet of fresh red tulips with both hands at chest height. Preserve her exact identity, face, hairstyle, expression, clothing, body position, background, composition, style, and lighting. 8213_2026-08-13_00025_m.jpg
    その少女に、新鮮な赤いチューリップの小さな花束を胸の高さで両手で持たせてください。彼女の容姿、顔立ち、髪型、表情、服装、体の向き、背景、構図、スタイル、そして照明をそのまま維持してください。

  2. 参照画像2枚とプロンプトによる画像編集
    他のモデルでの生成画像
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1
    参照画像 ①ワークフロー 8213_krea2_identity_edit.json
    woman8_m.jpg comfyui_A13_m.jpg
    参照画像 ②プロンプト生成画像
     ① 人物と公園背景を合成する
    8204_2026-08-10_00002_m.jpg Use image 1 only as the character reference and image 2 only as the environment reference. Place the exact character from image 1 standing naturally on the botanical park path from image 2. Preserve her identity, face, hairstyle, clothing, body proportions, and style. Replace the original background completely. Match the character scale, perspective, contact shadow, and daylight to image 2. Do not add extra people or objects. 8213_2026-08-13_00005_m.jpg
    画像1はキャラクターの参考資料としてのみ、画像2は背景の参考資料としてのみ使用してください。画像1のキャラクターをそのまま、画像2にある植物園の小道の上に自然な立ち姿で配置してください。その際、キャラクターの容姿、顔立ち、髪型、服装、体型、スタイルを忠実に維持し、元の背景は完全に置き換えてください。キャラクターのサイズ感、遠近法、足元の影(コンタクトシャドウ)、そして光の当たり方(昼光)を画像2の環境に合わせて調整してください。余分な人物や物体は追加しないでください。
     ② 背景へ合成して人物を座らせる
    8204_2026-08-10_00001_m.jpg Use image 1 as the character reference and image 2 as the environment and bench reference. Place the exact character from image 1 sitting naturally on the wooden bench in image 2, with her hips on the seat, knees bent, feet toward the ground, and hands relaxed. Preserve her identity, face, hairstyle, clothing, body proportions, and style. Replace the original background completely and match the perspective, scale, daylight, and contact shadows. Do not add extra people. 8213_2026-08-13_00006_m.jpg
    画像1をキャラクターの、画像2を環境とベンチの参考資料として使用してください。画像1のキャラクターをそのまま、画像2の木製ベンチに自然な姿勢(腰を座面に置き、膝を曲げ、足を地面に向け、手をリラックスさせた状態)で配置してください。その際、キャラクターの容姿、顔立ち、髪型、服装、体型、スタイルを忠実に再現してください。元の背景は完全に差し替え、遠近法、スケール、自然光、接地影(コンタクトシャドウ)を適切に合わせてください。他の人物は追加しないでください。
     ③ 背景へ合成して夕方にする
    8204_2026-08-10_00003_m.jpg Use image 1 only as the character reference and image 2 only as the environment and lighting reference. Place the exact character from image 1 naturally on the riverside promenade from image 2. Replace the original background completely and make the unified scene clearly sunset and early evening. Cast warm orange-pink sunset light and long soft shadows on the character so she belongs in the scene. Preserve her identity, face, hairstyle, clothing, proportions, and style. Do not add extra people. 8213_2026-08-13_00007_m.jpg
    画像1はキャラクターの参考資料としてのみ、画像2は背景と照明の参考資料としてのみ使用してください。画像1のキャラクターをそのまま、画像2の川沿いの遊歩道に自然な形で配置してください。元の背景を完全に差し替え、シーン全体を夕暮れから夕方にかけての時間帯として統一感のある描写にしてください。キャラクターに温かみのあるオレンジピンクの夕日を当て、長く柔らかな影を落とすことで、彼女がその場に自然に溶け込んでいるように見せてください。彼女の特徴、顔立ち、髪型、服装、プロポーション、スタイルは維持してください。他の人物は追加しないでください。
     ④ 背景へ遠景の人物として合成する
    8204_2026-08-10_00004_m.jpg Use image 1 as the character reference and image 2 as the environment and camera-composition reference. Show the exact character from image 1 as a small full-body figure far away near the center of the broad plaza in image 2, photographed from a long distance in a wide establishing shot with abundant surroundings and deep perspective. Preserve her recognizable identity, black hairstyle, clothing, proportions, and style. Replace the original background completely, match daylight and shadows, and do not add extra people. 8213_2026-08-13_00008_m.jpg
    画像1をキャラクターの、画像2を環境およびカメラ構図の参考資料として使用してください。画像2の広々とした広場の中央付近に、画像1のキャラクターを遠く離れた小さな全身像として配置し、周囲の風景を広く取り入れた奥行きのあるロングショット(全景ショット)で表現してください。その際、彼女の特徴である容姿、黒髪のヘアスタイル、服装、プロポーション、スタイルを維持してください。元の背景は完全に差し替え、自然光や影の表現を整合させるとともに、余分な人物は追加しないでください。
     ⑤ 服装を替える
    8220_2026-08-03_00004_m.jpg Use image 1 as the character, identity, pose, and composition reference. Use image 2 only as the clothing reference. Dress the exact character from image 1 in the complete outfit from image 2. Remove and replace the original clothing and gloves. Preserve her exact face, hairstyle, body, pose, original background, lighting, and style. Do not copy the flat-lay background. 8213_2026-08-13_00009_m.jpg
    画像1をキャラクター、外見的特徴、ポーズ、構図の参考として使用してください。画像2は衣装の参考としてのみ使用します。画像1のキャラクターに、画像2の衣装一式を着用させてください。元の服と手袋は取り除き、新しいものに置き換えてください。顔立ち、髪型、体型、ポーズ、元の背景、照明、スタイルはそのまま維持してください。(画像2にあるような)平置きの背景はコピーしないでください。
    33069_m.jpg 8213_2026-08-13_00010_m.jpg 8220_2026-08-03_00003_m.jpg 8213_2026-08-13_00011_m.jpg
     ⑥ バッグを持たせる
    back05_m.jpg Use image 1 as the character and scene reference. Use image 2 only as the bag reference. Give the exact character from image 1 the chestnut-brown leather crossbody satchel from image 2. The strap should cross her torso naturally, the satchel should rest at her hip, and one hand should visibly hold the strap. Preserve her identity, face, hairstyle, clothing, body proportions, background, lighting, and style. Include exactly one bag and do not copy the studio background. 8213_2026-08-13_00012_m.jpg
    画像1をキャラクターとシーンの参考資料として使用し、画像2はバッグの参考資料としてのみ使用してください。画像1のキャラクターに、画像2の栗色レザー製クロスボディ・サッチェルを持たせてください。ストラップは胴体を自然に斜めに横切り、サッチェルは腰の位置にくるようにし、片手でストラップを掴んでいる様子を描写してください。キャラクターの容姿、顔立ち、髪型、服装、体型、背景、照明、そしてスタイルはそのまま維持してください。バッグは必ず1つだけ描き、スタジオの背景は模写しないでください。
     ⑦ ポーズをつける ※ 参照画像でのポーズ指定はうまくいかない。最終的にプロンプトにポーズの指定を含めることになる(要調査)
    なし Use image 1 for the character's exact identity, face, hairstyle, body, clothing, and style. Stand on the left leg, lift the right knee forward to hip height bent 90 degrees, extend the left arm horizontally to the side, raise the right arm diagonally upward, keep the torso upright, and face forward. Render one complete full-body character with both feet and both hands visible. Keep a simple unobtrusive background and do not add another person. 8213_2026-08-13_00013_m.jpg
    画像1を参考に、キャラクターの容姿(顔、髪型、体型、服装、スタイル)を正確に再現してください。左足で立ち、右膝を90度に曲げて腰の高さまで前方に上げ、左腕を真横に伸ばし、右腕を斜め上方に掲げます。体幹をまっすぐに保ち、顔は正面に向けます。両足と両手が見える全身像を1体描画してください。背景はシンプルで目立たないものにし、他の人物は追加しないでください。

赤枠で画像編集(『JoyAI-Image Edit』と同じ条件で検証

 画像へ赤い枠を描き、その場所を編集対象や配置先として指定する
 参考URL → https://note.com/sepiablue/n/ne7b11ee379f3

  1. 赤枠による空間指示でオブジェクトを配置する
    他のモデルでの生成画像
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1
    元画像ワークフロー 8213_krea2_identity_edit.json
    2201_2026-08-11_00002_m.jpg comfyui_A14_m.jpg
    参照画像プロンプト生成画像
     ① 赤枠へ人物を移動する
    layout_test_m.jpg On the right side of Image 1, there is a red rectangular placement guide. Please move the woman so that she fits entirely within that red rectangle. Adjust the size as necessary to ensure her full body fits inside the rectangle and her feet rest naturally on the floor. Do not alter the woman's appearance, facial features, hairstyle, physique, style, lighting atmosphere, or the background of the room. Remove the woman from her original position and restore the background where she was standing, so that only the woman remains in the final image. Finally, remove the red guide from the image. 8213_2026-08-13_00002_m.jpg
    画像1の右側には、赤い長方形の配置ガイドが1つあります。女性を、その赤い長方形の中に完全に収まるように移動させてください。全身が長方形に収まり、かつ足元が自然に床に接するように、必要に応じてサイズを調整してください。その際、女性の容姿、顔立ち、髪型、体型、スタイル、照明の雰囲気、そして背景の部屋の様子は変えないでください。元の位置にいた女性の姿を取り除き、彼女が元々立っていた場所の背景を復元することで、最終的に女性が1人だけ残るようにします。最後に、画像から赤いガイドを取り除いてください。
     ② 赤枠へ小物を配置する
    layout_test2_m.jpg Image 1 contains one small red rectangular placement guide on the lower-left floor. Place exactly one small royal-blue gift box with a gold ribbon entirely inside that red rectangle, resting naturally on the floor with the correct perspective and a contact shadow. Do not move or alter the woman, her identity, pose, clothes, or the room. Remove the red guide from the final image and add no other objects 8213_2026-08-13_00003_m.jpg
    画像1の左下の床には、小さな赤い長方形の配置ガイドがあります。その赤い長方形の中に、金色のリボンが付いた小さなロイヤルブルーのギフトボックスを1つだけ配置してください。その際、正しい遠近法と接地影(コンタクトシャドウ)を反映させ、床に自然に置かれた状態にしてください。女性(その人物、ポーズ、服装)や部屋には一切変更を加えないでください。最終的な画像からは赤いガイドを取り除き、それ以外のオブジェクトは追加しないでください。
     ③ 赤枠へ人物を移動して姿勢を変える
    layout_test3_m.jpg Please remove the chair located within the red rectangle shown in Image 1. Then, place the woman in a seated position where the chair was. Ensure her feet are touching the floor and that her scale matches the chair. Do not alter the woman's face or clothing. Remove the red guide from the final image and do not add any other objects. 8213_2026-08-13_00004_m.jpg
    画像1の赤い長方形の位置の椅子を消してください。そのあと女性は赤い長方形の位置に椅子に座っています。足を床につけて、スケール感を椅子と合わせてください。女性の顔や服装には変更を加えないでください。最終的な画像からは赤いガイドを取り除き、それ以外のオブジェクトは追加しないでください

  2. 赤枠による空間指示で文字を入れる
    他のモデルでの生成画像
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1
    元画像ワークフロー 8213_krea2_identity_edit.json
    2201_2026-08-12_00001 m.jpg comfyui_A15_m.jpg
    参照画像 ①参照画像 ②プロンプト
     ① 赤枠へテキストを配置し物を配置する
    layout_test4_m.jpg Beer_m.jpg Write the Japanese text "はじける夏!" (Exciting Summer!) vertically inside the red box on the right side of Image 1. Place the glass of beer from Image 2 inside the red box at the bottom left. Finally, please remove the red boxes.
    画像1の右側にある赤い枠の中に、「はじける夏!」という文字を縦書きで配置してください。画像2にあるビールグラスを、左下の赤い枠の中に配置してください。最後に、赤い枠を削除してください。
    生成画像コメント
    8213_2026-08-13_00001_m.jpg・これまでのところ「Krea 2」では赤枠による位置指定の編集はできそうにない
    ・安定した結果を得るにはさらなる検証が必要
    ・テキスト描画は日本語も含めてできそうなのでレイアウトの指定方法が問題

 

更新履歴

 

参考資料