prithivMLmods/Qwen-Image-Edit-2511-Object-Adder

🤗 Hugging Face 来源image-to-imageapache-2.0236 MBother✓ 1 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo prithivMLmods/Qwen-Image-Edit-2511-Object-Adder ./model-folder
需要做种者 →

Qwen-Image-Edit-2511-Object-Adder

Qwen-Image-Edit-2511-Object-Adder is an adapter (LoRA) developed for Qwen’s Qwen-Image-Edit-2511 image-to-image model, specifically designed for precise object addition to images. The model adds specified objects while preserving the background, lighting, and surrounding elements, maintaining realism and original visual details. It can be used in combination with the lighting model configured with 4 steps to produce high-quality, high-resolution results. A key strength of this model is its strong consistency during image editing, ensuring that surrounding textures, lighting, shadows, and scene structure remain intact after object addition. This makes it well suited for tasks that require seamless edits without compromising image authenticity. Below are some example outputs that demonstrate the model’s ability to deliver accurate, realistic, and visually integrated object addition results.

Quick Start with Diffusers

Compatible with versions 2509 and 2511.

pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image

# Switch to "mps" for Apple devices
pipe = DiffusionPipeline.from_pretrained(
    "Qwen/Qwen-Image-Edit-2511",
    dtype=torch.bfloat16,
    device_map="cuda"
)

pipe.load_lora_weights("prithivMLmods/Qwen-Image-Edit-2511-Object-Adder")

prompt = "Add the specified objects to the image while preserving the background lighting and surrounding elements maintaining realism and original details."
input_image = load_image(
    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
)

image = pipe(image=input_image, prompt=prompt).images[0]

Sample Inferences (Add Objects)

Input Image Edit Prompt Output Image
Add the leather cowboy hat to the image while preserving the background, lighting, and surrounding elements, maintaining realism and original details.
Add the Batman logo design to the image while preserving the background, lighting, and surrounding elements, maintaining realism and original details.
Add the goggles to the image while preserving the background, lighting, and surrounding elements, maintaining realism and original details.

Trained on ModelScope.cn

Trigger Prompt

You should use the following prompt to trigger object addition:

Add the specified objects to the image while preserving the background lighting and surrounding elements maintaining realism and original details

Download Model

You can download the model files from the Files & versions tab: Download