> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen-Image-Edit ComfyUI ネイティブワークフローの例

> Qwen-Image-Edit は Qwen-Image の画像編集向けバージョンであり、20Bモデルを基にさらに学習が進められており、高精度なテキスト編集および意味／外観の両方を制御する編集機能をサポートします。

**Qwen-Image-Edit** は、Qwen-Image の画像編集専用バージョンです。20B規模の Qwen-Image モデルを基に追加学習が行われており、Qwen-Image の特徴的なテキストレンダリング能力を編集タスクへと成功裏に拡張し、高精度なテキスト編集を実現しています。さらに、Qwen-Image-Edit では入力画像を Qwen2.5-VL（視覚的意味制御用）および VAE エンコーダ（視覚的外観制御用）の両方に同時に供給することで、意味と外観の両方を独立して制御可能な「二重編集機能」を実現しています。

**モデルの特徴**

主な特徴は以下の通りです：

* 高精度なテキスト編集：Qwen-Image-Edit は中国語および英語のバイリンガルテキスト編集をサポートしており、画像内のテキストを直接追加・削除・修正できます。この際、元のテキストのサイズ、フォント、スタイルを保持したまま編集が可能です。
* 意味／外観の二重編集：Qwen-Image-Edit は、低レベルの視覚的外観編集（例：スタイル転送、要素の追加／削除／変更など）だけでなく、高レベルの視覚的意味編集（例：IPキャラクター作成、物体の回転など）もサポートします。
* 多様なベンチマークにおける優れた性能：複数の公開ベンチマークでの評価結果によると、Qwen-Image-Edit は画像編集タスクにおいてSOTA（State-of-the-Art）の性能を達成しており、強力な画像生成基盤モデルとして位置付けられています。

**公式リンク**:

* [GitHub リポジトリ](https://github.com/QwenLM/Qwen-Image)
* [Hugging Face](https://huggingface.co/Qwen/Qwen-Image-Edit)
* [ModelScope](https://modelscope.cn/models/qwen/Qwen-Image-Edit)

## ComfyOrg Qwen-Image-Edit ライブ配信（録画）

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/TZIijn-tvoc?si=Vb-ZNwTvJC67_UEE" title="Qwen-Image Edit in ComfyUI - Image Editing Model / August 19th, 2025" frameborder="0" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

## Qwen-Image-Edit ComfyUI ネイティブワークフローの例

<Tip>
  <Tabs>
    <Tab title="Portable or self deployed users">
      Make sure your ComfyUI is updated.

      * [Download ComfyUI](https://www.comfy.org/download)
      * [Update Guide](/installation/update_comfyui)

      Workflows in this guide can be found in the [Workflow Templates](/interface/features/template).
      If you can't find them in the template, your ComfyUI may be outdated. (Desktop version's update will delay sometime)

      If nodes are missing when loading a workflow, possible reasons:

      1. You are not using the latest ComfyUI version (Nightly version)
      2. Some nodes failed to import at startup
    </Tab>

    <Tab title="Desktop or Cloud users">
      * The Desktop is base on ComfyUI stable release, it will auto-update when there is a new Desktop stable release available.
      * [Cloud](https://cloud.comfy.org) will update after ComfyUI stable release.

      So, if you find any core node missing in this document, it might be because the new core nodes have not yet been released in the latest stable version. Please wait for the next stable release.
    </Tab>
  </Tabs>
</Tip>

### 1. ワークフローファイル

ComfyUI を更新後、テンプレートからワークフローファイルを取得するか、下記のワークフローを ComfyUI へドラッグ＆ドロップして読み込むことができます。
![Qwen-image テキストから画像生成のワークフロー](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/image/qwen/qwen-image-edit/qwen_image_edit.png)

<a className="prose" target="_blank" href="https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/image_qwen_image_edit.json" style={{ display: 'inline-block', backgroundColor: '#0078D6', color: '#ffffff', padding: '10px 20px', borderRadius: '8px', borderColor: "transparent", textDecoration: 'none', fontWeight: 'bold', marginRight: '10px'}}>
  <p className="prose" style={{ margin: 0, fontSize: "0.8rem" }}>JSON形式ワークフローをダウンロード</p>
</a>

<a className="prose" target="_blank" href="https://cloud.comfy.org/?template=image_qwen_image_edit&utm_source=docs" style={{ display: 'inline-block', backgroundColor: '#28a745', color: '#ffffff', padding: '10px 20px', borderRadius: '8px', borderColor: "transparent", textDecoration: 'none', fontWeight: 'bold'}}>
  <p className="prose" style={{ margin: 0, fontSize: "0.8rem" }}>ComfyUI Cloud 上で実行</p>
</a>

以下の画像を入力画像としてダウンロードしてください。
![Qwen-image テキストから画像生成のワークフロー](https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/image/qwen/qwen-image-edit/input.png)

### 2. モデルのダウンロード

すべてのモデルは、[Comfy-Org/Qwen-Image\_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) または [Comfy-Org/Qwen-Image-Edit\_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI) から入手できます。

**Diffusion モデル**

* [qwen\_image\_edit\_fp8\_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_fp8_e4m3fn.safetensors)

**LoRA**

* [Qwen-Image-Lightning-4steps-V1.0.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Lightning-4steps-V1.0.safetensors)

**テキストエンコーダ**

* [qwen\_2.5\_vl\_7b\_fp8\_scaled.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors)

**VAE**

* [qwen\_image\_vae.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors)

モデルの保存場所

```
📂 ComfyUI/
├── 📂 models/
│   ├── 📂 diffusion_models/
│   │   └── qwen_image_edit_fp8_e4m3fn.safetensors
│   ├── 📂 loras/
│   │   └── Qwen-Image-Lightning-4steps-V1.0.safetensors
│   ├── 📂 vae/
│   │   └── qwen_image_vae.safetensors
│   └── 📂 text_encoders/
│       └── qwen_2.5_vl_7b_fp8_scaled.safetensors
```

### 3. ワークフローの実行手順

<img src="https://mintcdn.com/dripart-docs-recommend-assets-api/19pHMF3x9dkLUPc9/images/tutorial/image/qwen/qwen_image_edit.jpg?fit=max&auto=format&n=19pHMF3x9dkLUPc9&q=85&s=18e6a7f2e3f49440b2184ee6d5ef08bc" alt="手順図" width="3782" height="2196" data-path="images/tutorial/image/qwen/qwen_image_edit.jpg" />

1. モデルの読み込み
   * `Load Diffusion Model` ノードが `qwen_image_edit_fp8_e4m3fn.safetensors` を読み込んでいることを確認してください。
   * `Load CLIP` ノードが `qwen_2.5_vl_7b_fp8_scaled.safetensors` を読み込んでいることを確認してください。
   * `Load VAE` ノードが `qwen_image_vae.safetensors` を読み込んでいることを確認してください。
2. 画像の読み込み
   * `Load Image` ノードで編集対象の画像をアップロードしていることを確認してください。
3. プロンプトの設定
   * `CLIP Text Encoder` ノード内でプロンプトを設定してください。
4. `Scale Image to Total Pixels` ノードは、入力画像を合計で約100万ピクセルになるよう自動的にスケーリングします。
   * 主に、2048×2048などの過大な解像度の入力画像によって出力画像の品質が低下することを防ぐための処理です。
   * 入力画像のサイズについて十分に把握している場合は、`Ctrl+B` キーでこのノードを無効化（バイパス）できます。
5. 画像生成を高速化するために4ステップ版 Lighting LoRA を利用したい場合、`LoraLoaderModelOnly` ノードを選択し、`Ctrl+B` キーを押して有効化してください。
6. `Ksampler` ノードの `steps` および `cfg` 設定については、ノード直下にメモが追加されています。最適なパラメータ設定を試行する際にご活用ください。
7. `Queue` ボタンをクリックするか、ショートカットキー `Ctrl（macOSではCmd）+ Enter` を押してワークフローを実行してください。
