/ Модель

Характеристики

Размер весов
47,2 МБ
Лицензия
Apache 2.0
Базовая модель
Qwen-Image-Edit
Библиотека
diffusers
Опубликована
20 авг 2025

qwen-image-edit-inscene-lora

Преобразование изображенийИзображение, текст → изображение4 профессии

Qwen Image Edit Inscene LoRA — открытая LoRA-модель, разработанная FlyMy.AI для Qwen/Qwen-Image-Edit.

2 354скачиваний за 30 дней93лайкавеса обновлены24 авг 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Она предназначена для редактирования изображений внутри исходной сцены с сохранением её контекста, пространственных взаимосвязей и логики композиции. Модель подходит для изменения положения объектов, действий персонажей, ракурса камеры и последовательных действий в одной сцене.

Это адаптация методом Low-Rank Adaptation, распространяемая в формате SafeTensors и совместимая с библиотекой Hugging Face Diffusers. Она усиливает пространственное понимание, позиционирование объектов, согласованность сцены и управляемое редактирование по текстовому описанию. Модель работает с изображениями и текстовыми промптами; README не указывает размер модели, максимальную длину контекста или полный набор поддерживаемых языков, кроме обозначенного английского.

Модель особенно полезна для in-scene editing, где требуется внести целевые изменения без потери общей структуры исходного изображения. Ограничения связаны с зависимостью от базовой модели Qwen/Qwen-Image-Edit и отсутствием в README количественных оценок качества, подробных требований к оборудованию и описания известных проблем. Проект распространяется по лицензии Apache 2.0.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Qwen Image Edit Inscene LoRA

An open-source LoRA (Low-Rank Adaptation) model for Qwen-Image-Edit that specializes in in-scene image editing by FlyMy.AI.

🌟 About FlyMy.AI

Agentic Infra for GenAI. FlyMy.AI is a B2B infrastructure for building and running GenAI Media agents.

🔗 Useful Links:


🚀 Features

  • LoRA-based fine-tuning for efficient in-scene image editing
  • Specialized for Qwen-Image-Edit model
  • Enhanced control over scene composition and object positioning
  • Optimized for maintaining scene coherence during edits
  • Compatible with Hugging Face diffusers
  • Control-based image editing with improved spatial understanding

📦 Installation

  1. Install required packages:

    pip install torch torchvision diffusers transformers accelerate
    
  2. Install the latest diffusers from GitHub:

    pip install git+https://github.com/huggingface/diffusers
    

🧪 Usage

🔧 Qwen-Image-Edit Initialization

from diffusers import QwenImageEditPipeline
import torch
from PIL import Image

# Load the pipeline
pipeline = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit")
pipeline.to(torch.bfloat16)
pipeline.to("cuda")

🔌 Load LoRA Weights

# Load trained LoRA weights for in-scene editing
pipeline.load_lora_weights("flymy-ai/qwen-image-edit-inscene-lora",weight_name="flymy_qwen_image_edit_inscene_lora.safetensors")

🎨 Edit Image with Qwen-Image-Edit Inscene LoRA

# Load input image
image = Image.open("./assets/qie2_input.jpg").convert("RGB")

# Define in-scene editing prompt
prompt = "Make a shot in the same scene of the left hand securing the edge of the cutting board while the right hand tilts it, causing the chopped tomatoes to slide off into the pan, camera angle shifts slightly to the left to center more on the pan."

# Generate edited image with enhanced scene understanding
inputs = {
    "image": image,
    "prompt": prompt,
    "generator": torch.manual_seed(0),
    "true_cfg_scale": 4.0,
    "negative_prompt": " ",
    "num_inference_steps": 50,
}

with torch.inference_mode():
    output = pipeline(**inputs)
    output_image = output.images[0]
    output_image.save("edited_image.png")

🖼️ Sample Output - Qwen-Image-Edit Inscene

Input Image:

Input Image

Prompt: "Make a shot in the same scene of the left hand securing the edge of the cutting board while the right hand tilts it, causing the chopped tomatoes to slide off into the pan, camera angle shifts slightly to the left to center more on the pan."

Output without LoRA:

Output without LoRA

Output with Inscene LoRA:

Output with LoRA


Workflow Features

  • ✅ Pre-configured for Qwen-Image-Edit + Inscene LoRA inference
  • ✅ Optimized settings for in-scene editing quality
  • ✅ Enhanced spatial understanding and scene coherence
  • ✅ Easy prompt and parameter adjustment
  • ✅ Compatible with various input image types

🎯 What is Inscene LoRA?

This LoRA model is specifically trained to enhance Qwen-Image-Edit's ability to perform in-scene image editing. It focuses on:

  • Scene Coherence: Maintaining logical spatial relationships within the scene
  • Object Positioning: Better understanding of object placement and movement
  • Camera Perspective: Improved handling of viewpoint changes and camera movements
  • Action Sequences: Enhanced ability to depict sequential actions within the same scene
  • Contextual Editing: Preserving scene context while making targeted modifications

🔧 Training Information

This LoRA model was trained using the FlyMy.AI LoRA Trainer with:

  • Base Model: Qwen/Qwen-Image-Edit
  • Training Focus: In-scene image editing and spatial understanding
  • Dataset: Curated collection of scene-based editing examples (InScene dataset)
  • Optimization: Low-rank adaptation for efficient fine-tuning

📊 Model Specifications

  • Model Type: LoRA (Low-Rank Adaptation)
  • Base Model: Qwen/Qwen-Image-Edit
  • File Format: SafeTensors (.safetensors)
  • Specialization: In-scene image editing
  • Training Framework: Diffusers + Accelerate
  • Memory Efficient: Optimized for consumer GPUs

🤝 Support

If you have questions or suggestions, join our community:

⭐ Don't forget to star the repository if you like it!


📄 License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffusers

Нельзя запустить

Модели «картинка → картинка» пока не запускаются: нужен ввод изображения для diffusion.

Ревизия весов
3857a93

0 моделей