私的AI研究会 > ComfyUI19b

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

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

▲ 目 次
※ 最終更新:2026/10/31 

『Qwen-Image-2.1』を検証する3「Qwen-Image-2.1 Tuabo」†

 『Qwen-Image-2.1 Turbo』の基本ワークフローから、目的別にすぐに使えるワークフローを編集する

Qwen-Image-2.1 Turbo†

 

Image Edit を深掘りする†

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

  1. 画像編集の基本
    参照画像ワークフロー 8451_qwen_image_2.1_turbo_edit_base.json
    cat_fawn_m.jpg comfyui_B03_m.jpg
    編集内容プロンプト生成画像
    ①基本の編集指示

    ・「男性を消して」「服を赤くして」「水彩画に変えて」のように参照画像の中の変更内容を指定する
    Please replace the kitten with a rabbit, keeping the same pose and position. 8461_2026-10-30_00001_m.jpg
    子猫をウサギに置き換えてください。その際、ポーズや位置はそのまま維持してください。

  2. 複数の参照画像から生成
    参照画像ワークフロー 8412_qwen_image_2.1_turbo_ref2image.json
    8402_2026-09-30_00020_m.jpg
    seal_m.jpg
    train4_m.jpg comfyui_B04_m.jpg
    編集内容プロンプト生成画像
    ②参照画像を組み合わせる

    ・参照画像は最大 10 枚まで
    ・プロンプトで「<image1> の女性が <image2> の場所に座っている」のように、どの画像を使うのか指定する
    Use <image1> as the girl reference, <image2> as the plush seal reference, and <image3> as the train interior reference.
    The girl is sitting naturally on the long bench seat of the train, not lying
    8462_2026-10-30_00001_m.jpg
    <image1>を少女の参考に、<image2>をアザラシのぬいぐるみの参考に、<image3>を車内の参考にしてください
    少女は電車の長いベンチシートに、横たわるのではなく、自然な様子で座っています。

  3. 位置指定して編集
    参照画像ワークフロー 8451_qwen_image_2.1_turbo_edit_base.json
    cat_fawn_a_m.jpg&ref(): File not found: "comfyui_A61_m.jpg" at page "ComfyUI19b";
    編集内容プロンプト生成画像
    ③場所を色ペンで囲って指示

    ・編集したい画像に直接、編集させたいオブジェクトを囲む・「赤丸で囲った腕時計を消して」のように指示
    ・Load Image ノードの Mask Editor でも指定可能
    Replace the fawn inside the red circle with one made of polished, silvery metal. Replace the cat inside the blue circle—while keeping its original pose—with a handmade model crafted from red clay (featuring a matte finish and the characteristic texture of clay). Do not alter any other parts. 8461_2026-10-30_00002_m.jpg
    赤い円の中の子鹿を、磨き上げられた銀色の金属製のものに置き換えてください。青い円の中の猫は、元のポーズを維持したまま、赤い粘土で作られた手製のモデル(マットな質感で、粘土特有の風合いがあるもの)に置き換えてください。それ以外の部分は変更しないでください。

  4. マスクで編集(Inpainting)
    参照画像ワークフロー 8453_qwen_image_2.1_turbo_edit_mask.json
    &ref(): File not found: "eagle_b_m.jpg" at page "ComfyUI19b"; comfyui_B05_m.jpg
    編集内容プロンプト生成画像
    ④場所をマスクで囲って指示

    ・編集したい画像に直接、編集させたいオブジェクトを囲む・Load Image の MASK 出力を Convert Mask to Image で白黒画像に変換し、image_2 へ入力
    ・マスクから変換せず、黒い背景に白で塗った画像を直接用意してもよい
    Replace the area marked <image2> with a puppy. Do not change any other parts of the scene. 8463_2026-10-30_00001_m.jpg
    <image2>と示された箇所を子犬に置き換えてください。シーンの他の部分は一切変更しないでください。

  5. アウトペイント(OutPainting)
    参照画像ワークフロー 8454_qwen_image_2.1_turbo_outpaint.json
    woman7a_m.jpg comfyui_B06_m.jpg
    編集内容プロンプト生成画像
    ⑤周囲の画像を追加

    ・横長の画像を縦長するなど周囲を埋めた画像を生成・余白のみならず画像全体を描き直しているので、元の部分も多少変化する
      8464_2026-10-30_00001_m.jpg

  6. ポーズを変える(OpenPose)
    参照画像ワークフロー 8455_qwen_image_2.1_turbo_openpose.json
    style_04_m.jpg pose_89p_m.jpg comfyui_B07_m.jpg
    編集内容プロンプト生成画像
    ⑥人物を指定したポーズにする

    ・ControlNet で参照画像から余計な情報を削ぎ落とし、ポーズや形だけを取り出して渡す
    Change the pose of the character in <image1> to match the pose in <image2>. Preserve the character's identity, clothing, appearance, and art style from <image1>. 8465_2026-10-30_00001_m.jpg
    <image1>のキャラクターのポーズを、<image2>のポーズに合わせて変更してください。<image1>のキャラクターのアイデンティティ、服装、外見、および画風は維持してください。

  7. ポーズを変える2
    参照画像ワークフロー 8452_qwen_image_2.1_turbo_ref2image.json
    style_02c_m.jpg openpose_test_m.jpg&ref(): File not found: "comfyui_A60_m.jpg" at page "ComfyUI19b";
    編集内容プロンプト生成画像
    ⑦人物を指定したポーズにする

    ・ポーズ画像(棒人間の画像)を直接入力する

     → ポーズ集
    Change the pose of the character in <image1> to match the pose in <image2>. Preserve the character's identity, clothing, appearance, and art style from <image1>. &ref(): File not found: "8412_2026-09-25_00011_m.jpg" at page "ComfyUI19b";
    <image1>のキャラクターのポーズを、<image2>のポーズに合わせて変更してください。<image1>のキャラクターのアイデンティティ、服装、外見、および画風は維持してください。

  8. 高精細化(Upscale)
    参照画像ワークフロー 8456_qwen_image_2.1_turbo_upscale.json
    AA_05_try_00000_m_00001_m128x192_m.jpg comfyui_B08_m.jpg
    編集内容プロンプト生成画像
    ⑧小さい画像を大きくする
    &ref(): File not found: "SD_11_10106-3086744152_128x128_m.jpg" at page "ComfyUI19b";
    Upscale the image while preserving the original composition, framing, subject appearance, object positions, colors, lighting, and visual style. Reproduce the same image with greater clarity and finer detail. 8466_2026-10-30_00001_m.jpg
    元の構図、フレーミング、被写体の外観、物体の配置、色、照明、そして視覚的なスタイルを維持したまま、画像をアップスケールしてください。より高い鮮明さと緻密なディテールで、同じ画像を再現してください。

  9. 透過画像・切り抜き
    基本プロンプトワークフロー 8457_qwen_image_2.1_turbo_extraction.json
    This is an RGBA image with transparency. <ここに生成したいもののプロンプト>. The image has alpha channel and the background is transparent. comfyui_B09_m.jpg
    これは透明度情報を含むRGBA画像です。<ここに生成したいもののプロンプト>。この画像にはアルファチャンネルが含まれており、列車以外の部分はすべて透明になっています。
    参照画像プロンプト (基本プロンプト赤字部分)生成画像(透過画像 .png)
    ⑨ woman7b_m.jpg Extract only the person from the image. 8467_2026-10-30_00001.png
    画像から人物だけを抽出してください。

  10. パノラマ画像生成
    ・任意の参照画像を2:1 の解像度で ERP として生成して 360度パノラマ画像を生成することができる
    ・パノラマ・ビューア → 拡張ノード: ComfyUI Manager から Panorama Stickers で検索、nomadoor/ComfyUI-Panorama-Stickers
    パノラマ画像 プレビューワークフロー 8458_qwen_image_2.1_turbo_panorama.json
    comfyui_B10_m.jpg
    参照画像プロンプト生成画像
    ⑩ img_6516_m.jpg Convert this image into a coherent 360-degree equirectangular panorama. Extend the scene naturally in all directions while preserving the original content and style. 8418_2026-10-02_00006_m.jpg
    この画像を、整合性のある360度正距円筒図法のパ​​ノラマに変換してください。元の内容とスタイルを維持しつつ、全方向に自然な形で風景を拡張してください。
     Tips:
    ● ERP(Equirectangular Panorama:正距円筒図法)<360度×180度の全天球パノラマ画像を2次元の長方形(縦横比2:1)に展開した画像> を生成する
     生成画像を WEBブラウザで見る → 360度パノラマビューア

 

更新履歴†

 

参考資料†