私的AI研究会 > ComfyUI17a

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

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

▲ 目 次
※ 最終更新:2026/08/13 

『Krea 2』を検証する2

 発表間もない Krea2 で続々登場する応用例を検証してみる 参考 URL:→ 生成AIグラビアをグラビアカメラマンが作るとどうなる?第70回, 第70回

プロジェクトで作成するワークフロー

 このプロジェクトで作成するワークフローと関連データは下記にアップロードしている(更新されている場合は再度ダウンロードのこと)

画像生成のための環境構築

  1. 必要な拡張ノード → 拡張ノードの導入
    拡張ノード(検索名)拡張ノード URL主な機能 / 参照ページ特記事項
    rgthree rgthree-comfyノードをスイッチで切り替えるすべてのノードに必須
    ComfyUI_Custom_Nodes_AlekPet ComfyUI_Custom_Nodes_AlekPetプロンプトを日本語入力する
    Krea2 Control comfyui-krea2-controlnetKrea 2 ControlNet (Depth)
    comfyui_controlnet_aux ComfyUI's ControlNet Auxiliary PreprocessorsControlNet カスタムノード
    ComfyUI-Krea2TexTEncoder ComfyUI-Krea2TexTEncoderKrea 2 Text Encoder手動インストール
    ComfyUI-Krea2Edit ComfyUI-Krea2EditKrea 2 Image Edit
    ComfyUI-Rebels-Krea2-Outpaint ComfyUI-Rebels-Krea2-OutpaintKrea 2 Outpaint
    ComfyUI-TextGenerateGemma3Prompt ComfyUI-TextGenerateGemma3Prompt画像のプロンプト解析手動インストール プロンプト解析
  2. 必要モデルのダウンロードと配置
    モデル名ファイル名(.safetensors)配置先(/StabilityMatrix/Data/)ダウンロード URL共通で使用
    lolasdepth-control-loraModels/Lora/depth-control-lora.safetensors
    krea2_identity_edit_v1_2krea2_identity_edit_v1_2.safetensors
    krea2_outpaint_rank32krea2_outpaint_rank32.safetensors
  3. 推奨ワークフロー
    ・ワークフロー(応用例)
    フォルダワークフロー名 (.json)モデル機能 (参照ページ)特記事項(同じ機能のワークフロー .json)
    Krea8220_krea2_edit_dress蒸留版
    fp8
    アパレル写真8213_krea2_identity_edit
    8221_krea2_edit_portrait人の顔(頭部)の写真
    8222_krea2_edit_fashionファッション写真の生成
    8223_krea2_edit_style_sheetスタイルシートの生成8213_krea2_identity_edit + Clip Image ノード

Text Encoder 画像でプロンプ入力

 Text Encoderに複数のImage(Mask込み)とSystem Promptを追加する。通常のCLIP Text Encode (Prompt) を完全に置き換えることができる
 ・このImage入力はリファレンス画像相当だがi2iではない
 ・Qwen3-VL-4B の Vision 機能を使って画像を解析、テキスト化したものを Prompt に送る。入力画像とよく似たものにはなるが、完全なコピーではない
  1. 必要な拡張ノード → マニュアル・インストール(custom_nodes/ フォルダにコピー)
    拡張ノード(検索名)拡張ノード URL主な機能 / 参照ページ特記事項
    ComfyUI-Krea2TexTEncoder ComfyUI-Krea2TexTEncoderKrea 2 Text Encoder手動インストール
  2. ワークフローを作成する
    入力画像生成画像
    32480_m.jpg 8210_2026-07-29_00001_m.jpg
    「Krea/」8210_krea2_text_encode_simple.json
    comfyui_988_m.jpg

ControlNet(Depth) 画像でプロンプトを制御

 元画像の深度情報を使い、生成する画像の構図を固定するコントロールネット。拡張ノードと LoRaモデル(追加学習モデル)が必要
  1. 必要な拡張ノード → 拡張ノードの導入
    拡張ノード(検索名)拡張ノード URL主な機能 / 参照ページ特記事項
    Krea2 Control comfyui-krea2-controlnetKrea 2 ControlNet (Depth)
    comfyui_controlnet_aux ComfyUI's ControlNet Auxiliary PreprocessorsControlNet カスタムノード
  2. 必要モデルのダウンロードと配置
    モデル名ファイル名(.safetensors)配置先(/StabilityMatrix/Data/)ダウンロード URL共通で使用
    lolasdepth-control-loraModels/Lora/depth-control-lora.safetensors
  3. ワークフローを作成する
    プロンプト
    a japanease woman with a short haircut and a white shirt is posing for a picture with a white background, perfect face, a character portrait, precisionism
    ショートヘアで白いシャツを着た日本人女性が白い背景の前でポーズをとっている。完璧な顔立ち、人物像、精密さ
    入力画像Depth(深度)画像生成画像
    girl-for-controlnet_m.jpg edit_depth01_m.jpg 8211_2026-07-24_00001_m.jpg
    「Krea/」8211_krea2_turbo_ctrlnet_simple.json
    comfyui_980_m.jpg

Image Copy 同じ画像を生成

 元画像の内容を ControlNetで構図を固定し qwen3vl_4b の Vision 機能を使って読み取プロンプト入力とすることで 100%完全ではないものの、画像コピー機して機能する。ControlNetが動く環境と拡張ノードが必要
  1. 必要な拡張ノード → マニュアル・インストール(custom_nodes/ フォルダにコピー)
    拡張ノード(検索名)拡張ノード URL主な機能 / 参照ページ特記事項
    ComfyUI-Krea2TexTEncoder ComfyUI-Krea2TexTEncoderKrea 2 Text Encoder手動インストール
  2. ワークフローを作成する
    入力画像生成画像
    girl-for-controlnet_m.jpg 8212_2026-07-24_00001_m.jpg
    「Krea/」8212_krea2_turbo_imgcopy_simple.json
    comfyui_981_m.jpg

Image Edit v1.2 リファレンス画像編集

 元画像をプロンプトで指示した内容へ書き換える。拡張ノードと LoRaモデル(追加学習モデル)が必要
  1. 必要な拡張ノード → マニュアル・インストール(custom_nodes/ フォルダにコピー)
    拡張ノード(検索名)拡張ノード URL主な機能 / 参照ページ特記事項
    ComfyUI-Krea2Edit ComfyUI-Krea2EditKrea 2 Image Edit手動インストール
  2. 必要モデルのダウンロードと配置
    モデル名ファイル名(.safetensors)配置先(/StabilityMatrix/Data/)ダウンロード URL共通で使用
    lolaskrea2_identity_edit_v1_2Models/Lora/krea2_identity_edit_v1_2.safetensors
  3. 拡張ノードに添付されたワークフローを調べる 「custom_nodes/comfyui-krea2edit/workflows/krea2_identity_edit.json」
    入力画像プロンプト生成画像
    example_m.jpg Change her outfit to a red raincoat. krea2_identity_edit_00004_m.jpg
    彼女の服装を赤いレインコートに変えてください。
    「Krea/」krea2_identity_edit.json
    comfyui_982a_m.jpg
    ワークフローに含まれる注意書き
    ▼ AI による日本語訳
    ▼ 原文

  4. 編集例1:背景を替える
    ・ワークフロー「krea2_identity_edit.json」を整理する
    入力画像プロンプト生成画像
    33066_m.jpg Change all flowers to sunflowers. 88213_2026-07-24_00001_m.jpg
    すべての花をひまわりに変えてください。
    「Krea/」8213_krea2_identity_edit.json
    comfyui_982_m.jpg
  5. 編集例2:服の着せ替え
    入力画像1入力画像2プロンプト
    33066_m.jpg 33069_m.jpg Change the outfit to a mini dress.
    衣装をミニドレスに変えてください。
    「Krea/」8213_krea2_identity_edit.json生成画像
    comfyui_982b_m.jpg 8213_2026-07-25_00001_m.jpg
  6. 編集例3:スタイルシートをつかう
    入力画像プロンプト
    33072_m.jpg A young Japanese woman shops in Shibuya.
    若い日本人女性が渋谷で買い物をしている。
    「Krea/」8213_krea2_identity_edit.json生成画像
    comfyui_982c_m.jpg 8213_2026-07-25_00002_m.jpg
  7. 編集例4:人物の背景を消す(スタイルシートの素材を作成)
    入力パラメータ 縦横比:3:4
    ワークフロー「Krea/」8213_krea2_identity_edit.json
    プロンプト a photo of a person, full white background, isolated on white, high quality, studio portrait
    人物写真、完全な白背景、白背景で切り抜き済み、高品質、スタジオポートレート
    元画像(全身)
    style_01_m.jpg style_02_m.jpg style_03_m.jpg
    style_01a_m.jpg style_02a_m.jpg style_03a_m.jpg
    元画像(顔のアップ)
    style_01b_m.jpg style_02b_m.jpg style_03b_m.jpg
    style_01c_m.jpg style_02c_m.jpg style_03c_m.jpg
  8. 編集例5:背景を消去した画像からスタイルシートを作成して画像生成
    入力パラメータ 縦横比:1:1
    ワークフロー「Krea/」8213_krea2_identity_edit.json
    プロンプト A young Japanese woman shops in Shibuya.
    若い日本人女性が渋谷で買い物をしている。
    入力画像(スタイルシート)
    style_sheet_01_m.jpg style_sheet_02_m.jpg style_sheet_03_m.jpg
    生成結果画像
    8213_2026-08-01_00020_m.jpg 8213_2026-08-01_00021_m.jpg 8213_2026-08-01_00022_m.jpg

Outpaint 画像の周囲を生成

 元画像から周囲を書き加える機能。拡張ノードと LoRaモデル(追加学習モデル)が必要
  1. 必要な拡張ノード → マニュアル・インストール(custom_nodes/ フォルダにコピー)
    拡張ノード(検索名)拡張ノード URL主な機能 / 参照ページ特記事項
    ComfyUI-Rebels-Krea2-Outpaint ComfyUI-Rebels-Krea2-OutpaintKrea 2 Outpaint手動インストール
  2. 必要モデルのダウンロードと配置
    モデル名ファイル名(.safetensors)配置先(/StabilityMatrix/Data/)ダウンロード URL共通で使用
    lolaskrea2_outpaint_rank32Models/Lora/krea2_outpaint_rank32.safetensors
  3. ワークフローを作成する
    入力画像生成画像
    32742_m.jpg 8214_2026-07-24_00001_m.jpg
    「Krea/」8214_krea2_turbo_outpaint_simple.json
    comfyui_983_m.jpg

リファレンス画像編集1:何ができるか

  1. アパレル写真
     ポートレート写真の人物の服だけを取り出し、白背景の上に配置したアパレル商品写真(Flat Lay 平置き風)を生成する
    入力パラメータ 縦横比:3:4
    プロンプト Commercial product photo, flat lay of a modern stylish outfit dress, neatly arranged on a seamless white backdrop, soft studio lighting, high resolution, detailed fabric texture, no person, isolated on white
    商品写真、モダンでスタイリッシュなドレスのコーディネートを真上から撮影(フラットレイ)。継ぎ目のない白い背景に整然と配置され、柔らかなスタジオ照明を使用。高解像度で生地の質感を詳細に表現。人物は写っておらず、白背景で切り抜かれた状態。
    ネガティブ
    プロンプト
    human, person, skin, face, hair, head, woman, man, mannequin, background elements, shadow on background, blur
    人間、人物、肌、顔、髪、頭、女性、男性、マネキン、背景要素、背景に落ちる影、ぼかし
    入力画像
    style_02_m.jpg style_04_m.jpg 31680_m.jpg
    生成結果画像
    8220_2026-08-03_00004_m.jpg 8220_2026-08-03_00003_m.jpg 8220_2026-08-03_00001_m.jpg
    ワークフロー:「Krea/」8220_krea2_edit_dress.json
    comfyui_989_m.jpg
    ワークフロー
     8213 + プロンプト/ネガティブ・プロンプト修正

  2. 人の顔(頭部)の写真
     ポートレート写真から頭部(顔・髪・イヤリングなどのアクセサリー)だけを抽出し、完全に背景や服を消去して白背景の上に綺麗に配置する
    入力パラメータ 縦横比:21:9
    プロンプト Commercial beauty studio headshot portrait, close-up of a person's head including face, styled hair, and detailed earrings jewelry, floating seamlessly, isolated on a pure solid seamless white background, high-end commercial beauty photography, studio lighting, crisp focus, hyper-detailed skin texture and jewelry, no clothes, no body, no torso, no neck visible. Place two 1:1 aspect ratio images—one frontal and one side view—side by side. separated by a clean vertical division.
    商業用ビューティースタジオでのポートレート(ヘッドショット)。顔、スタイリングされた髪、精巧なイヤリングを含む頭部のクローズアップ。継ぎ目のない純白の背景から自然に浮かび上がるような構図。ハイエンドな商業用ビューティー写真、スタジオライティング、鮮明なフォーカス、肌の質感やジュエリーの極めて精緻なディテール。衣服、胴体、首は写っていません。アスペクト比1:1の画像2枚(正面と横顔)を、すっきりとした垂直の境界線で区切り、並べて配置してください。
    ネガティブ
    プロンプト
    clothing, clothes, shirt, dress, jacket, collar, shoulders, torso, body, neck, background elements, shadow on background, room, blur
    衣類、服、シャツ、ドレス、ジャケット、襟、肩、胴体、体、首、背景の要素、背景に落ちる影、部屋、ぼかし
    入力画像
    style_02_m.jpg style_04_m.jpg 31680_m.jpg
    生成結果画像
    8221_2026-08-03_00003_m.jpg 8221_2026-08-03_00002_m.jpg 8221_2026-08-03_00001_m.jpg
    ワークフロー:「Krea/」8221_krea2_edit_portrait.json
    comfyui_989a_m.jpg
    ワークフロー
     8213 + プロンプト/ネガティブ・プロンプト修正

  3. ファッション写真の生成
     スナップ写真(日常感や動きのある写真)をベースに、「白背景・正面・全身・ファッションカタログ風」 の高品位な画像へ再構築する
    入力パラメータ 縦横比:3:4
    プロンプト Full-length fashion lookbook photograph, standing front-facing pose, simple seamless white background, studio softbox lighting, clean shadows, crisp details, highly detailed fabric texture, minimal aesthetic, shot on 35mm lens, 8k resolution, photorealistic, preserving the specific items and colors from the source image, with sharp focus on outfit details, realistic fabric texture, natural folds and wrinkles, as seen in the reference image.
    全身のファッションルックブック写真。正面を向いて立つポーズ。シンプルで継ぎ目のない白背景。スタジオのソフトボックス照明。すっきりとした影と鮮明なディテール。極めて精細な生地の質感。ミニマルな美学。35mmレンズで撮影。8K解像度。フォトリアリスティックな仕上がり。元画像の特定のアイテムや色を忠実に再現し、衣装の細部、リアルな生地の質感、自然なドレープやシワにピントを合わせた、リファレンス画像通りの描写。
    ネガティブ
    プロンプト
    なし
    入力画像
    style_02_m.jpg style_04_m.jpg 31680_m.jpg
    生成結果画像
    8222_2026-08-03_00004_m.jpg 8222_2026-08-03_00007_m.jpg 8222_2026-08-03_00002_m.jpg
    ワークフロー:「Krea/」8222_krea2_edit_fashion.json
    comfyui_989b_m.jpg
    ワークフロー
     8213 + プロンプト修正

  4. スタイルシートの生成
     スナップ写真から「全身、正面、服装・質感 の再現画像」「正面と横顔の顔写真」を配置したスタイルシートを生成する
    入力パラメータ 縦横比:1:1
    プロンプト A strict, split-screen fashion style sheet presentation, perfectly divided down the center into two separate vertical halves. The entire composition is isolated on a pure, seamless solid white studio background with clean, professional softbox lighting and hyper-detailed photorealistic quality (8k).

    [Left Panel - Defined 1:2 Aspect Ratio area]: Occupying exactly the left half of the image, separated by a clean vertical division, is a single, centered full-length fashion lookbook photograph. There is nothing other than people. The model is standing in a front-facing pose, preserving the specific items, colors, and realistic fabric texture of the outfit from the reference image. Crisp focus, minimal aesthetic. Do not overlap with the right panel.

    [Right Panel - Vertically stacked 1:1 Images]: Occupying exactly the right half are two vertically stacked, close-up commercial beauty studio headshot portraits, completely separate from the left panel. The top 1:1 image shows the model’s head (frontal view). The bottom 1:1 image shows the identical model’s head (side profile view). Both portraits are only of the head, isolated with no clothes, neck, or body visible.
    画面中央で左右にきれいに分割された、厳密なスプリットスクリーン形式のファッション・スタイルシート・レイアウト。背景は継ぎ目のない純白のスタジオ背景で、プロフェッショナルなソフトボックス照明を使用し、8K解像度の超高精細かつフォトリアリスティックな品質で表現されています。

    [左パネル - アスペクト比1:2の領域]: 画像の左半分を占めるのは、中央に配置された全身のファッション・ルックブック写真1枚です。被写体以外の要素は一切含まれません。モデルは正面を向いたポーズをとっており、参照画像にある衣装のアイテム、色、リアルな生地の質感が正確に再現されています。ピントは鮮明で、ミニマルな美学に基づいた構成です。右パネルとは重ならないように配置してください。

    [右パネル - 縦に並んだ1:1の画像]: 画像の右半分を占めるのは、縦に並んだ2枚のクローズアップ・ビューティー・ポートレート(顔写真)です。これらは左パネルとは完全に独立しています。上部の1:1画像にはモデルの顔(正面)が、下部の1:1画像には同じモデルの顔(横顔)が写っています。どちらのポートレートも顔のみを捉えたもので、衣服、首、胴体などは写り込まないように切り抜かれています。
    ネガティブ
    プロンプト
    overlapping images, double exposure, collage blend, distorted layout, boundary crossing, messy composition, extra limbs, fused images, text, watermark, sign
    画像の重なり、多重露光、コラージュ・ブレンド、歪んだレイアウト、境界を越える要素、乱雑な構図、余分な手足、融合した画像、テキスト、透かし、署名
    入力画像
    style_02_m.jpg style_04_m.jpg 31680_m.jpg
    生成結果画像
    8223_2026-08-03_00002_m.jpg
    8223_2026-08-03_00005_m.jpg
    8223_2026-08-03_00004_m.jpg
    ワークフロー:「Krea/」8223_krea2_edit_style_sheet.json
    comfyui_989c_m.jpg入力画像によりレイアウトが崩れる場合
    comfyui_989d_m.jpg Clip Image を有効に
     x, y, width, height
    ① 160, 0,352,512
    ② disable
    ③ 320, 0,340,437

    ワークフロー:8213 + Clip Imag ノード +
     プロンプト/ネガティブ・プロンプト修正

  5. 生成したスタイルシートを使う1
    入力パラメータ 縦横比:3:4
    ワークフロー「Krea/」8213_krea2_identity_edit.json
    プロンプト A young Japanese woman shops in Shibuya.
    若い日本人女性が渋谷で買い物をしている。
    入力画像(スタイルシート)
    8223_2026-08-03_00002_m.jpg 8223_2026-08-03_00005_m.jpg 8223_2026-08-03_00004_m.jpg
    生成結果画像
    8213_2026-08-03_00001_m.jpg 8213_2026-08-03_00002_m.jpg 8213_2026-08-03_00003_m.jpg

  6. 生成したスタイルシートを使う2
    入力パラメータ 縦横比:4:3
    ワークフロー「Krea/」8213_krea2_identity_edit.json
    プロンプト A young Japanese woman relaxing in a café.
    カフェでくつろぐ若い日本人女性
    入力画像(スタイルシート)
    8223_2026-08-03_00002_m.jpg 8223_2026-08-03_00005_m.jpg 8223_2026-08-03_00004_m.jpg
    生成結果画像
    8213_2026-08-04_00008_m.jpg 8213_2026-08-04_00010_m.jpg 8213_2026-08-04_00009_m.jpg

  7. ファッション写真を使う
    入力パラメータ 縦横比:4:3
    ワークフロー「Krea/」8213_krea2_identity_edit.json
    プロンプト A young Japanese woman relaxing in a café.
    カフェでくつろぐ若い日本人女性
    入力画像(全身ファッション写真)
    8222_2026-08-03_00004_m.jpg 8222_2026-08-03_00007_m.jpg 8222_2026-08-03_00002_m.jpg
    生成結果画像
    8213_2026-08-04_00019_m.jpg 8213_2026-08-04_00020_m.jpg 8213_2026-08-04_00018_m.jpg

  8. 服装を替える
    入力パラメータ 縦横比:3:4入力画像 ①
    ワークフロー「Krea/」8213_krea2_identity_edit.json 32480_m.jpg
    プロンプト Change the outfit to a mini dress.
    衣装をミニドレスに変えてください。
    入力画像 ②
    8220_2026-08-03_00004_m.jpg 8220_2026-08-03_00003_m.jpg 8220_2026-08-03_00001_m.jpg
    生成結果画像
    8213_2026-08-04_00002_m.jpg 8213_2026-08-04_00001_m.jpg 8213_2026-08-04_00003_m.jpg

  9. 1枚の写真から実際にやってみる
    ・写真の内容を解析してプロンプトにする
    元の写真解析したプロンプト  Krea2_qwen_Text_Genarater.json
    n_17882_m.jpg A young woman in a vibrant, patterned kimono with red, pink, and blue floral motifs sits on a traditional Japanese veranda at night, gazing upward with a serene expression as she watches fireworks explode in the dark sky above a softly blurred cityscape of glowing bokeh lights; the scene is captured in a cinematic photograph style with deep blue tones, warm firework highlights, and soft focus background, emphasizing her contemplative pose against the window’s wooden lattice frame.
    赤、ピンク、青の花柄があしらわれた鮮やかな着物をまとった若い女性が、夜、日本の伝統的な縁側に座っています。彼女は、柔らかな光のボケが広がる街並みを見下ろしながら、暗い夜空に打ち上がる花火を穏やかな表情で見上げています。深い青の色調、花火の温かみのある輝き、そして背景の柔らかなボケ味を活かした映画のような写真スタイルで、木製の格子窓を背景に物思いに耽る彼女の姿が印象的に捉えられています。
    ・解析したプロンプトを使って画像を生成する
    4:3 生成画像  8204_krea2_turbo_t2i_simple3:4 生成画像  8204_krea2_turbo_t2i_simple
    8204_2026-08-06_00002_m.jpg 8204_2026-08-06_00001_m.jpg
    ・素材を作る
    8220_krea2_edit_dress.json8222_krea2_edit_fashion.json8223_krea2_edit_style_sheet.json
    8220_2026-08-06_00001_m.jpg 8222_2026-08-06_00001_m.jpg 8223_2026-08-06_00001_m.jpg
    ・完成写真
    3:4 生成画像  8213_krea2_identity_edit.json4:3 生成画像  8213_krea2_identity_edit.json
    A young Japanese woman shops in Shibuya. A young Japanese woman relaxing in a café.
    若い日本人女性が渋谷で買い物をしている。カフェでくつろぐ若い日本人女性
    8213_2026-08-06_00002_m.jpg 8213_2026-08-06_00001_m.jpg

リファレンス画像編集2:人物を入れ替える

 キャラクターの顔や人物の特徴を維持したまま、自然な画像編集・合成を行うことができる「Krea 2 Identity Edit」を検証する
  1. 元画像・参照画像のプロンプト解析
    ・生成したい画像のプロンプト(英語)を作成するため、使用する画像の内容を把握する必要がある
    ・このため Qwen3-VL モデルを利用して画像の内容を解析するワークフローを作成する
    「Krea/」Krea2_qwen_Text_Genarater.json
    comfyui_989e_m.jpg●参照ワークフロー:
     「~beta/」 LTX2-Text_Genarater_beta.json

    ①「テキストエンコーダ でプロンプトを作る」
     の 拡張ノード を利用する
    ②「標準ワークフロー搭載のシステムプロンプト
     を設定する
    ③ Clip モデルは下記に変更
     qwen3vl_4b_fp8_scaled.safetensors
    ・画像解析例:
    入力画像画像から生成したプロンプト
    woman5_m.jpg A warm, softly lit photograph of a young woman with long, wavy brown hair sitting gracefully on a wooden windowsill inside a cozy café or boutique shop, wearing a loose-knit beige cardigan over a white top paired with a flowing cream pleated midi skirt and polished brown ankle boots; she smiles gently toward the camera with a relaxed, serene expression, her legs crossed at the ankles, positioned near a large black-framed window that reveals a blurred street view with a white car parked outside, with minimalist wooden tables visible in the foreground, capturing a tranquil, stylish, and inviting atmosphere.
    居心地の良いカフェやブティックの店内にある木製の窓辺に優雅に座っている、ウェーブのかかった茶色の長い髪を持つ若い女性が、白いトップスの上にゆったりとしたニットのベージュのカーディガンを着て、流れるようなクリーム色のプリーツのミディスカートと磨かれた茶色のアンクルブーツを合わせている、暖かく柔らかな光に照らされた写真。彼女はリラックスした穏やかな表情でカメラに向かって優しく微笑み、足首で足を組み、黒枠の大きな窓の近くに位置し、外に駐車された白い車とぼやけた通りの景色が見え、前景にはミニマルな木製のテーブルが見え、静かでスタイリッシュで魅力的な雰囲気を捉えています。
    8222_2026-08-03_00004_m.jpg A full-length photograph of a smiling young woman with dark hair tied back, standing confidently against a plain white studio background, wearing a long, textured gray overcoat with subtle embossed lettering, layered over a light gray crewneck sweater and a crisp white collared shirt, paired with wide-leg white trousers and minimalist flat shoes with tan soles; her right hand is casually tucked into the coat pocket, her body slightly angled to the camera, illuminated by soft, even studio lighting that highlights the texture of her coat and the clean lines of her outfit, capturing a bright, cheerful, and effortlessly stylish mood.
    真っ白なスタジオの背景に自信を持って立っている、黒髪を後ろで束ねた笑顔の若い女性の全身写真。微妙なエンボス加工が施された質感のあるグレーのロングコートを着て、ライトグレーのクルーネックセーターとさわやかな白い襟付きシャツを重ね、白いワイドレッグパンツとタンソールのミニマルなフラットシューズを組み合わせています。彼女の右手は無造作にコートのポケットに差し込まれており、彼女の体はカメラに向かってわずかに傾いており、柔らかく均一なスタジオ照明に照らされて、彼女のコートの質感と衣装のすっきりとしたラインが強調され、明るく陽気で、さりげなくスタイリッシュな雰囲気を捉えています。
  2. プロンプトの作り方(Gemini による)
    Krea2Editで背景・ポーズを維持しつつ人物を置き換える場合、「元写真の環境(背景・ポーズ・ライティング)」と「参照画像の人物・服装(特徴・素材)」を融合させた英語プロンプトを作成するのが最も効果的
    推奨ポジティブプロンプト例
    A full-body shot of a fashion model with [参照人物の特徴: e.g., short blonde hair, East Asian woman] wearing [服装の詳細: e.g., an oversized white linen shirt, dark blue wide-leg denim pants, and brown leather boots], standing in [スナップ写真の背景: e.g., a bustling Tokyo street with soft outdoor daylight], matching the exact pose, body angle, and framing of the original image, seamless lighting, realistic skin texture, highly detailed photorealistic snapshot
    [参照人物の特徴:例- ブロンドのショートヘアの東アジア系女性]のファッションモデル]が、[服装の詳細:例- オーバーサイズの白いリネンシャツ、ダークブルーのワイドレッグ・デニムパンツ、茶色のレザーブーツ]を着用し、[スナップ写真の背景:例- 柔らかな自然光が降り注ぐ、活気ある東京の通りに立っている全身ショット。]元の画像のポーズ、体の角度、フレーミングを正確に再現し、シームレスなライティング、リアルな肌の質感、細部まで緻密に描写されたフォトリアリスティックなスナップショット
    構成のポイントとプロンプト調整
    人物・衣装の記述(参照画像から抽出)
    白背景の参照写真から、「髪型・顔立ち」「トップス」「ボトムス」「靴」の具体的な特徴(色・素材・シルエット)を英語で抜き出して入れ替える
    背景・ライティングの記述(スナップ写真から抽出)
    スナップ写真の雰囲気(例:`outdoor daylight`, `cozy cafe background`, `cinematic neon lighting`)を記述し、新しく挿入される人物が背景の光に馴染むように指定する
    ポーズと言い回しの固定フラグ
    `matching the exact pose, body angle, and framing of the original image` を加えることで、元のスナップ写真の体勢や構図の維持をモデルへ強く指示
  3. スナップ写真の人物を入れ替える
    プロンプトワークフロー
    A warm, softly lit photograph of a smiling young woman with dark hair tied back, wavy brown hair sitting gracefully on a wooden windowsill inside a cozy café or boutique shop wearing a long, textured gray overcoat with subtle embossed lettering, layered over a light gray crewneck sweater and a crisp white collared shirt, paired with wide-leg white trousers and minimalist flat shoes with tan soles;
    she smiles gently toward the camera with a relaxed, serene expression, her legs crossed at the ankles, positioned near a large black-framed window that reveals a blurred street view with a white car parked outside, with minimalist wooden tables visible in the foreground, capturing a tranquil, stylish, and inviting atmosphere.
    comfyui_989f_m.jpg
    8213_krea2_identity_edit.json
    温かみのある柔らかな光に包まれた一枚。黒髪を後ろでまとめ、ウェーブのかかった茶髪をのぞかせた若い女性が、居心地の良いカフェやブティックの木製窓辺に優雅に腰掛けています。彼女は、さりげないエンボス文字が施された質感のあるグレーのロングコートを羽織り、その下にはライトグレーのクルーネックセーターと清潔感のある白い襟付きシャツを重ね着し、ボトムスにはワイドな白いトラウザー、足元にはタンカラーのソールが特徴的なミニマルなフラットシューズを合わせています。
    リラックスした穏やかな表情でカメラに向かって優しく微笑む彼女は、足首を交差させて座っています。背景には黒い枠の大きな窓があり、外には白い車が停まった街の風景がぼんやりと見え、手前にはシンプルな木製テーブルが配置されており、全体として静穏でスタイリッシュ、かつ温かく迎え入れてくれるような雰囲気が表現されています。
    生成画像
    8213_2026-08-05_00001_m.jpg

リファレンス画像編集3:箱とラベルで構図を指定する

 「Krea 2 Identity Edit」を使って箱とラベルで構図を指定できるらしい。半信半疑で確かめてみる
 参考URL:https://note.com/sepiablue/n/nf0e22611f0ad
      https://www.reddit.com/r/comfyui/comments/1v7sdez/it_turns_out_that_krea_2_identity_edit_lora_can/
  1. 静物・大小と軽い重なり
    レイアウト図プロンプト生成画像
    layout_01_m.jpg Transform the labeled layout diagram into a coherent photorealistic still-life photograph in soft natural morning light. Interpret every labeled guide as content and spatial composition, but do not show any guide outlines, labels, diagram text, or white diagram background in the final image. 8213_2026-08-04_00013_m.jpg
    ラベル付きのレイアウト図を、朝の柔らかな自然光に包まれた、まとまりのある写実的な静物写真へと変換してください。各ラベル付きガイドをコンテンツおよび空間構成として解釈しつつ、最終的な画像にはガイドの輪郭線、ラベル、図のテキスト、あるいは図の白い背景などが一切写らないようにしてください。
  2. リビング・家具と接触配置
    レイアウト図プロンプト生成画像
    layout_02_m.jpg Transform the labeled layout diagram into a coherent photorealistic cozy living-room interior at night with warm cinematic lighting. Interpret every labeled guide as content and spatial composition, but do not show any guide outlines, labels, diagram text, or white diagram background in the final image. 8213_2026-08-04_00014_m.jpg
    ラベル付きのレイアウト図を、温かみのある映画的な照明に包まれた、居心地の良いリビングルームの夜のインテリア画像へと変換してください。各ラベル付きガイドは、配置される要素や空間構成として解釈し、完成画像にはガイドの輪郭線、ラベル、図中のテキスト、あるいは図の白い背景などが一切表示されないようにしてください。
  3. 山岳風景・前景、中景、背景
    レイアウト図プロンプト生成画像
    layout_03_m.jpg Transform the labeled layout diagram into a coherent cinematic photorealistic alpine travel photograph at sunset with deep perspective. Interpret every labeled guide as content and spatial composition, but do not show any guide outlines, labels, diagram text, or white diagram background in the final image. 8213_2026-08-04_00015_m.jpg
    ラベル付きのレイアウト図を、奥行き感のある、夕暮れ時のアルプス旅行を捉えた、映画のような写実的でまとまりのある写真へと変換してください。図中の各ガイド(指示線や枠)をコンテンツおよび空間構成の要素として解釈しつつ、最終的な画像にはガイドの輪郭線、ラベル、図のテキスト、あるいは図の白い背景などを一切表示しないでください。
  4. ラーメン店・人物と複数オブジェクト
    レイアウト図プロンプト生成画像
    layout_04_m.jpg Transform the labeled layout diagram into a coherent dramatic cinematic fantasy digital painting. Interpret every labeled guide as content, depth order, and spatial composition, but do not show any guide outlines, labels, diagram text, or white diagram background in the final image. 8213_2026-08-04_00016_m.jpg
    ラベル付きのレイアウト図を、まとまりのあるドラマチックかつ映画的なファンタジー・デジタル・ペインティングへと変換してください。各ラベル付きガイドをコンテンツ、奥行きの順序、および空間構成として解釈しつつ、完成画像にはガイドの輪郭線、ラベル、図のテキスト、あるいは図の白い背景を一切表示しないでください。
  5. 複雑な重なりと曲線オブジェクト
    レイアウト図プロンプト生成画像
    layout_05_m.jpg Transform the labeled layout diagram into a coherent dramatic cinematic fantasy digital painting. Interpret every labeled guide as content, depth order, and spatial composition, but do not show any guide outlines, labels, diagram text, or white diagram background in the final image. 8213_2026-08-04_00017_m.jpg
    ラベル付きのレイアウト図を、まとまりのあるドラマチックかつ映画的なファンタジー・デジタル・ペインティングへと変換してください。各ラベル付きガイドをコンテンツ、奥行きの順序、および空間構成として解釈しつつ、完成画像にはガイドの輪郭線、ラベル、図のテキスト、あるいは図の白い背景を一切表示しないでください。
 

忘備録

スナップ写真からスタイルシートを生成する場合の注意点

 

更新履歴

 

参考資料