見出し画像

Qwen Image Edit 2511 のオブジェクト追加/削除 LoRA

Qwen Image Edit 2511には色んなLoRAがリリースされていますが、今回は画像にオブジェクトを追加するLoRAと、オブジェクトを削除するLoRAがリリースされたので、紹介します。

基本的なQwen Image Edit 2511については以下を参考にしてください。

また、他にも便利なLoRAがリリースされているので、興味があればご確認ください。

動画でも解説してます。


環境

OS:Windows 11
GPU:GeForce RTX 4090
CPU:i9-13900KF
memory:128G


構築手順

ComfyUIと必要なノードは全て最新化してください。


モデル

qwen_image_edit_2511_fp8_e4m3fn_scaled_lightning_comfyui_4steps_v1.0.safetensorsをダウンロードして「ComfyUI\models\diffusion_models」に配置

Qwen-Image-Edit-2511-Object-Adder.safetensorsをダウンロードして「ComfyUI\models\loras」に配置

Qwen-Image-Edit-2511-Object-Remover.safetensorsをダウンロードして「ComfyUI\models\loras」に配置

qwen_image_vae.safetensorsをダウンロードして「ComfyUI\models\vae」に配置

qwen_2.5_vl_7b_fp8_scaled.safetensorsをダウンロードして「ComfyUI\models\text_encoders」に配置


ワークフロー

ワークフローは以下です。
オブジェクトの追加と削除を切り替えはプロンプトで行うので、LoRAの活性・非活性を切り替える必要はありません。


生成結果

生成時間は67秒。VRAM22GB。
(モデルが読み込まれている場合は、25秒)

LoRAのリリース元のプロンプトで、ゴーグルを追加しました。

Add the goggles to the image while preserving the background, lighting, and surrounding elements, maintaining realism and original details.

他のオブジェクトを試す場合は、プロンプトは以下をベースにしてください。
<object(s)>の箇所のみを修正して使えます。

追加(Adder)

Add the <object(s)> to the image while preserving the background, lighting, and surrounding elements, maintaining realism and original details.

削除(Remover)

Remove the <object(s)> from the image while preserving the background and remaining elements, maintaining realism and original details.


以下のプロンプトでバスケットボールの追加をしました。

Add the basketball to the image while preserving the background, lighting, and surrounding elements, maintaining realism and original details.

以下のプロンプトで黒いリボンを削除しました。

Remove the black ribbon from the image while preserving the background and remaining elements, maintaining realism and original details.

いいなと思ったら応援しよう!