私的AI研究会 > ComfyUI19a

画像生成AI「ComfyUI」19(応用編Ⅶ) == 編集中 ==†

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

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

『Qwen-Image-2.1』を検証する2†

 

Image Edit を深掘りする†

 画像編集を参試してみる
 参考URL → https://comfyui.nomadoor.net/ja/basic-workflows/qwen-image-2-1/

  1. 画像編集の基本
    参照画像ワークフロー 8411_qwen_image_2.1_image_edit_base.json
    eagle_m.jpg comfyui_A55_m.jpg
    編集内容プロンプト生成画像
    ①基本の編集指示

    ・「男性を消して」「服を赤くして」「水彩画に変えて」のように参照画像の中の変更内容を指定する
    Replace the rabbit with a realistic RC off-road buggy in the same pose and position, kicking up dirt. 8411_2026-09-24_00001_m.jpg
    ウサギを、同じポーズと位置で土を跳ね上げているリアルなRCオフロードバギーに置き換えてください。

  2. 複数の参照画像から生成
    参照画像ワークフロー 8412_qwen_image_2.1_ref2image.json
    8402v2_2026-09-24_00008_m.jpg
    shark_m.jpg
    train2_m.jpg comfyui_A56_m.jpg
    編集内容プロンプト生成画像
    ②参照画像を組み合わせる

    ・参照画像は最大 10 枚まで
    ・プロンプトで「<image1> の女性が <image2> の場所に座っている」のように、どの画像を使うのか指定する
    Use <image1> as the girl reference, <image2> as the plush shark reference, and <image3> as the train interior reference.
    The girl is sitting naturally on the long bench seat of the train, not lying
    &ref(): File not found: "8412_2026-09-24_00001_m.jpg" at page "ComfyUI19a";
    <image1>を少女の参考画像、<image2>をサメのぬいぐるみの参考画像、<image3>を電車の車内の参考画像として使用してください。
    少女は横たわるのではなく、電車の長いベンチシートに自然な姿勢で座っています。

  3. 位置指定して編集
    参照画像ワークフロー 8411_qwen_image_2.1_image_edit_base.json
    eagle_a_m.jpg comfyui_A55_m.jpg
    編集内容プロンプト生成画像
    ③場所を色ペンで囲って指示

    ・編集したい画像に直接、編集させたいオブジェクトを囲・「赤丸で囲った腕時計を消して」のように指示
    ・Load Image ノードの Mask Editor でも指定可能
    Replace the hawk inside the red circle with one made of polished silver-colored metal. Replace the rabbit inside the blue circle with a handmade red clay model—retaining its running pose—that has a matte clay texture. Leave the rest of the scenery unchange 8411_2026-09-24_00003_m.jpg
    赤い円の中にあるタカを、磨き上げられた銀色の金属製のものに置き換えてください。青い円の中にあるウサギは、走っているポーズはそのままに、赤い粘土で手作りされた、つや消しの質感を備えたモデルに置き換えてください。それ以外の風景は変更しないでください。

#ref(): File not found: "8402_2026-09-24_00022_m.jpg" at page "ComfyUI19a"

#ref(): File not found: "8412_2026-09-24_00001_m.jpg" at page "ComfyUI19a"

 

更新履歴†

 

参考資料†