私的AI研究会 > ComfyUI19b

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

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

▲ 目 次
※ 最終更新:2026/11/01 

『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. 画像編集の基本
    参照画像ワークフロー 8461_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. 複数の参照画像から生成
    参照画像ワークフロー 8462_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. 位置指定して編集
    参照画像ワークフロー 8461_qwen_image_2.1_turbo_edit_base.json
    cat_fawn_a_m.jpg comfyui_B15_m.jpg
    編集内容プロンプト生成画像
    ③場所を色ペンで囲って指示

    ・編集したい画像に直接、編集させたいオブジェクトを囲む・「赤丸で囲った腕時計を消して」のように指示
    ・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)
    参照画像ワークフロー 8463_qwen_image_2.1_turbo_edit_mask.json
    cat_fawn_b_m.jpg 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)
    参照画像ワークフロー 8464_qwen_image_2.1_turbo_outpaint.json
    woman7a_m.jpg comfyui_B06_m.jpg
    編集内容プロンプト生成画像
    ⑤周囲の画像を追加

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

  6. ポーズを変える(OpenPose)
    参照画像ワークフロー 8465_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
    参照画像ワークフロー 8462_qwen_image_2.1_turbo_ref2image.json
    style_04_m.jpg openpose_test_m.jpg comfyui_B16_m.jpg
    編集内容プロンプト生成画像
    ⑦人物を指定したポーズにする

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

     → ポーズ集
    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>. 8462_2026-10-31_00001_m.jpg
    <image1>のキャラクターのポーズを、<image2>のポーズに合わせて変更してください。<image1>のキャラクターのアイデンティティ、服装、外見、および画風は維持してください。

  8. 高精細化(Upscale)
    参照画像ワークフロー 8466_qwen_image_2.1_turbo_upscale.json
    AA_05_try_00000_m_00001_m128x192_m.jpg comfyui_B08_m.jpg
    編集内容プロンプト生成画像
    ⑧小さい画像を大きくする
    AA_05_try_00000_m_00001_m128x192_m.jpg
    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. 透過画像・切り抜き
    基本プロンプトワークフロー 8467_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
    パノラマ画像 プレビューワークフロー 8468_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. 8468_2026-10-30_00001_m.jpg
    この画像を、整合性のある360度正距円筒図法のパ​​ノラマに変換してください。元の内容とスタイルを維持しつつ、全方向に自然な形で風景を拡張してください。
     Tips:
    ● ERP(Equirectangular Panorama:正距円筒図法)<360度×180度の全天球パノラマ画像を2次元の長方形(縦横比2:1)に展開した画像> を生成する
     生成画像を WEBブラウザで見る → 360度パノラマビューア

簡潔で汎用的なプロンプトを使用する†

 画像編集に優たモデルは、『Krea 2』『JoyAI-Image』などがあるが、『Qwen-Image-2.1』は抽象的な指示で画像編集ができる点に優位性がある
 ・簡潔で汎用的な表現で目的とする画像を生成する方法を検証してみる

  1. 参照画像2枚とプロンプトによる画像編集 Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
    他のモデルでの生成画像(共通のプロンプトで比較)
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1
    参照画像 ①ワークフロー 8462_qwen_image_2.1_turbo_ref2image.json
    woman7b_m.jpg comfyui_B17_m.jpg
    ① ~ ④ プロンプト
    Please place the person from <Image2> into the scene in <Image1>. Make sure to reflect the angle and lighting conditions of <Image1>.
    <Image2>の人物を<Image1>のシーンに配置してください。その際、<Image1>の角度や照明条件を反映させるようにしてください。
    参照画像 ②生成画像参照画像 ②生成画像
     ① 人物と公園背景を合成する ② 背景へ合成して人物を座らせる
    back02_m.jpg 8462_2026-10-30_00002_m.jpg 8204_2026-08-10_00001_m.jpg 8462_2026-10-30_00006_m.jpg
     ③ 背景へ合成して夕方にする ④ 背景へ遠景の人物として合成する
    back03_m.jpg 8462_2026-10-30_00004_m.jpg back04_m.jpg 8462_2026-10-30_00005_m.jpg
    参照画像 ②プロンプト生成画像
      ⑤ 服装を替える
    dress_05_m.jpg Please replace the outfit of the person in <Image1> with the outfit in <Image2>. 8462_2026-10-30_00007_m.jpg
    <Image1>の人物の服装を、<Image2>の服装に置き換えてください。
    参照画像 ②生成画像参照画像 ②生成画像
    33069_m.jpg 8462_2026-10-31_00003_m.jpg 8220_2026-08-03_00003_m.jpg 8462_2026-10-31_00004_m.jpg
    参照画像 ②プロンプト生成画像
      ⑥ バッグを持たせる
    back05_m.jpg Please have the person in <Image1> wear the item in <Image2>. 8462_2026-10-30_00008_m.jpg
    <Image1>の人物に、<Image2>のアイテムを着用させてください。

    ・参照画像でポーズを指定する(「JoyAI-Image Edit」でうまくいかなかった問題点)
    参照画像 ①ワークフロー 8465_qwen_image_2.1_turbo_openpose.json
    woman7b_m.jpg comfyui_B20_m.jpg
    参照画像 ②プロンプト生成画像
      ⑦ ポーズをつける (棒人間ポーズ画像の場合)
    openpose_test_m.jpg 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-31_00003_m.jpg
    <image1>のキャラクターのポーズを、<image2>のポーズに合わせて変更してください。<image1>のキャラクターのアイデンティティ、服装、外見、および画風は維持してください。
    参照画像 ②生成画像
      ⑦ ポーズをつける (人物画像の場合)
    pose_02_m.jpg 8465_2026-10-31_00002_m.jpg
    pose_89p_m.jpg 8465_2026-10-31_00001_m.jpg

  2. 赤枠で画像編集 Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
    他のモデルでの生成画像(共通のプロンプトで比較)
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1
    元画像ワークフロー 8462_qwen_image_2.1_turbo_ref2image.json
    2201_2026-08-11_00002_m.jpg&ref(): File not found: "comfyui_A67_m.jpg" at page "ComfyUI19b";
    参照画像プロンプト生成画像
     ① 赤枠へ人物を移動する
    layout_test_m.jpg Please move the person from <Image1> to the area outlined in red. 8462_2026-10-30_00009_m.jpg
    <Image1>の人物を、赤枠で囲まれたエリアに移動させてください。
     ② 赤枠へ小物を配置する
    layout_test2_m.jpg参照画像 ②
    back05_m.jpg
    Please place the object from <Image1> inside the red frame in <Image1>. 8462_2026-10-30_00010_m.jpg
    <Image1>にある物体を、<Image1>内の赤い枠の中に置いてください。
     ③ 赤枠へ人物を移動して姿勢を変える
    layout_test3_m.jpg Please remove the person in <Image1> and place them on the chair indicated by the red frame, seated with their back facing towards the viewer. 8462_2026-10-30_00011_m.jpg
    <Image1>の人物を切り抜き、赤い枠で示された椅子に、背中をこちらに向けて座らせてください。

  3. 赤枠による空間指示で文字を入れる Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
    他のモデルでの生成画像
    FLUX.2 kleinZ-ImageERNIE-ImageHiDream-O1Ideogram4 4,0Boogu-ImageKrea 2JoyAI-ImagQwen-Image-2.1FLUX.3 klein
    MOSS-Image
    参照画像 ①参照画像 ②ワークフロー 8462_qwen_image_2.1_turbo_ref2image.json
    layout_test4_m.jpg Beer_m.jpg&ref(): File not found: "comfyui_A54_m.jpg" at page "ComfyUI19b";
    プロンプト生成画像
    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. &ref(): File not found: "8402v2_2026-09-24_00013_m.jpg" at page "ComfyUI19b";
    画像1の右側にある赤い枠の中に、「はじける夏!」という文字を縦書きで配置してください。画像2にあるビールグラスを、左下の赤い枠の中に配置してください。最後に、赤い枠を削除してください。

人物素材を作る†

 スナップ写真(日常感や動きのある写真)をベースに、全身の姿が明確にわかる三面図(正面、背面、側面)をつくる

  1. キャラクター・リファレンスシート(正面、背面、側面) Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
    プロンプトワークフロー 8469_qwen_image_2.1_turbo_3view
    Based on <image1>, please create a three-view drawing (front, back, and side views) that clearly shows the full-body figure against a gray background. comfyui_B11_m.jpg
    <image1>に基づき、グレーの背景を背景として全身の姿を明確に示す三面図(正面、背面、側面)を作成してください。
    参照画像生成画像参照画像生成画像
    style_02c_m.jpg 8469_2026-10-30_00001_m.jpg woman8_m.jpg&ref(): File not found: "8402_2026-09-30_00002_m.jpg" at page "ComfyUI19b";
    style_02_m.jpg&ref(): File not found: "8402_2026-09-30_00004_m.jpg" at page "ComfyUI19b"; 31680_m.jpg&ref(): File not found: "8402_2026-09-30_00005_m.jpg" at page "ComfyUI19b";
    基本プロンプトワークフロー 8469_qwen_image_2.1_turbo_3view
    A character design reference sheet featuring FRONT view, SIDE view, and BACK view of ONE AND THE SAME person, not three different people. Generate exactly ONE character in various poses on a clean gray studio background. Consistent facial features, exact same hairstyle, and identical clothing across all views. High-resolution layout, professional character turnaround sheet, studio soft lighting, no extra text or artifacts. &ref(): File not found: "comfyui_A72_m.jpg" at page "ComfyUI19b";
    同一人物(3人の別々の人物ではなく、あくまで1人の人物)の正面、側面、背面の姿を収めたキャラクターデザイン・リファレンスシート。清潔感のあるグレーのスタジオ背景をバックに、様々なポーズをとったそのキャラクターを1体だけ生成してください。すべての視点において、顔立ち、髪型、服装が完全に一致している必要があります。高解像度のレイアウト、プロ仕様のキャラクター・ターンアラウンド・シート(三面図)、スタジオの柔らかな照明を用い、余分な文字やノイズ(アーティファクト)は含めないようにしてください。
    参照画像生成画像参照画像生成画像
    32491_m.jpg&ref(): File not found: "8402_2026-09-30_00009_m.jpg" at page "ComfyUI19b"; woman5a_m.jpg&ref(): File not found: "8402_2026-09-30_00010_m.jpg" at page "ComfyUI19b";
    ComfyUI_2026-02-04_00002_m.jpg&ref(): File not found: "8402_2026-09-30_00011_m.jpg" at page "ComfyUI19b"; style_03b_m.jpg&ref(): File not found: "8402_2026-09-30_00012_m.jpg" at page "ComfyUI19b";

  2. アパレル写真 Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
     スナップ写真の人物の服だけを取り出し、白背景の上に配置したアパレル商品写真(Flat Lay 平置き風)を生成する
    プロンプトワークフロー 8470_qwen_image_2.1_turbo_outfit
    <Image1> Product photo of a coordinated outfit; the clothing is shot from the front (flat lay). Neatly arranged against a seamless gray background using soft studio lighting. High resolution, capturing the fabric texture in detail. No person is visible; the item is cut out against the gray background. &ref(): File not found: "comfyui_A73_m.jpg" at page "ComfyUI19b";
    <Image1> コーディネートされた服装の製品写真。正面からのショット(平置き)。継ぎ目のないグレーの背景に対し、柔らかなスタジオ照明を用いてきれいに配置されています。高解像度で、生地の質感を細部まで捉えています。人物は写っておらず、グレーの背景から切り抜かれた状態です。
    入力画像
    style_02_m.jpg style_04_m.jpg 31680_m.jpg
    生成結果画像
    &ref(): File not found: "8402_2026-09-30_00013_m.jpg" at page "ComfyUI19b";&ref(): File not found: "8402_2026-09-30_00014_m.jpg" at page "ComfyUI19b";&ref(): File not found: "8402_2026-09-30_00015_m.jpg" at page "ComfyUI19b";

  3. ファッション写真 Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
     スナップ写真(日常感や動きのある写真)をベースに、「白背景・正面・全身・ファッションカタログ風」 の高品位な画像へ再構築する
    プロンプトワークフロー 8471_qwen_image_2.1_turbo_fashion
    Full-length fashion lookbook photograph, standing front-facing pose, simple seamless gray 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. &ref(): File not found: "comfyui_A74_m.jpg" at page "ComfyUI19b";
    全身のファッションルックブック用写真。正面を向いて立つポーズ。シンプルで継ぎ目のないグレーの背景。スタジオのソフトボックス照明。すっきりとした影と鮮明なディテール。極めて精細な生地の質感。ミニマルな美学。35mmレンズで撮影。8K解像度。フォトリアリスティックな仕上がり。元画像の特定のアイテムや色を忠実に再現し、衣装の細部、リアルな生地の質感、自然なドレープやシワにシャープなピントを合わせています。
    入力画像
    style_02_m.jpg style_04_m.jpg 31680_m.jpg
    生成結果画像
    &ref(): File not found: "8402_2026-09-30_00016_m.jpg" at page "ComfyUI19b";&ref(): File not found: "8402_2026-09-30_00017_m.jpg" at page "ComfyUI19b";&ref(): File not found: "8402_2026-09-30_00018_m.jpg" at page "ComfyUI19b";

  4. スタイルシート Qwen-Image-2.1 / Qwen-Image-2.1 Turbo
     スナップ写真から「全身、正面、服装・質感 の再現画像」「正面と横顔の顔写真」を配置したスタイルシートを生成する
    プロンプトワークフロー 8472_qwen_image_2.1_turbo_style_sheet
    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 gray 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.
    &ref(): File not found: "comfyui_A75_m.jpg" at page "ComfyUI19b";
    画面中央で左右にきれいに分割された、厳密なスプリットスクリーン形式のファッション・スタイルシート・レイアウト。背景は継ぎ目のない純粋なグレーのスタジオ背景で、プロフェッショナルなソフトボックス照明を使用し、8K解像度の超高精細かつフォトリアリスティックな品質で表現されています。

    [左パネル - アスペクト比1:2の領域]: 画像の左半分を占めるのは、中央に配置された全身のファッション・ルックブック写真1枚です。被写体は人物のみで、モデルは正面を向いて立っています。衣装のアイテム、色、リアルな生地の質感は、参照画像の内容を忠実に再現します。ピントは鮮明で、ミニマルな美学に基づいた構成です。右側のパネルとは重ならないようにしてください。

    [右パネル - 縦に並んだ1:1の画像]: 画像の右半分には、左側のパネルとは完全に独立した、縦に並ぶ2枚のクローズアップ・ビューティー・ポートレート(スタジオ撮影の顔写真)が配置されています。上部の1:1画像はモデルの顔(正面)を捉えたものです。下部の1:1画像は同じモデルの顔(横顔)を捉えたものです。どちらのポートレートも顔のみを写しており、衣服、首、胴体などは写り込まないように切り抜かれています。
    入力画像生成結果画像
    style_02_m.jpg&ref(): File not found: "8402_2026-09-30_00019_m.jpg" at page "ComfyUI19b";

 

更新履歴†

 

参考資料†