Instructions to use xinyupu/MoRe-Drag-MLLM-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use xinyupu/MoRe-Drag-MLLM-LoRA with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Configuration Parsing Warning:In adapter_config.json: "peft.task_type" must be a string
MoRe-Drag MLLM LoRA
This is the instruction LoRA of MoRe-Drag, from the paper Drag as Evidence: Motion-Grounded Latent Recomposition for Drag-Based Editing (NeurIPS 2026). Code: MoRe-Drag.
Given a source image and the same image annotated with the drag points, the model writes the editing instruction for the drag. In the annotated image, a red square marks a handle point, a blue circle marks its target point, and a yellow arrow shows the drag direction. MoRe-Drag uses this LoRA only when no instruction is given.
Usage
MoRe-Drag loads the LoRA into the Qwen2.5-VL text encoder of the editing pipeline (LongCat-Image-Edit or Qwen-Image-Edit). It turns the LoRA on only while it writes the instruction, so prompt encoding for editing is unchanged.
Download the adapter:
hf download xinyupu/MoRe-Drag-MLLM-LoRA --local-dir MoRe-Drag-MLLM-LoRA
Then pass the folder to MoRe-Drag and leave out the instruction:
python infer.py --backbone longcat \
--image image.png --mask mask.png --points points.json \
--mllm-adapter MoRe-Drag-MLLM-LoRA --output result.png
Or in Python:
from more_drag import generate_instruction
instruction = generate_instruction(pipe, image, points, "MoRe-Drag-MLLM-LoRA")
Details
- Base model: Qwen/Qwen2.5-VL-7B-Instruct
- LoRA rank 32, alpha 64, on the attention and MLP layers of the language model and the vision encoder, and on the vision merger
Citation
@article{pu2026moredrag,
title={Drag as Evidence: Motion-Grounded Latent Recomposition for Drag-Based Editing},
author={Xinyu Pu and Hongsong Wang and Jie Gui and Pan Zhou},
journal={arXiv preprint arXiv:2609.36755},
year={2026}
}
- Downloads last month
- 2
Model tree for xinyupu/MoRe-Drag-MLLM-LoRA
Base model
Qwen/Qwen2.5-VL-7B-Instruct