Downloads · 30 days
0
elaine1wan/motionedit
motionedit is a machine learning model from elaine1wan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
<p align="center" <img src="./MotionEdit.png" width="500"/ <p
Downloads · 30 days
0
Access
Public
Updated Dec 13, 2025
Repo size
1.7 GB
Likes
3
Public
Click a slice to open those files.
.pt754 MB · 67%
From the Hugging Face model README
MotionEdit is a novel dataset and benchmark for motion-centric image editing. We also propose MotionNFT (Motion-guided Negative-aware FineTuning), a post-training framework with motion alignment rewards to guide models on motion image editing task.
Clone our github repository and switch to the directory.
git clone https://github.com/elainew728/motion-edit.git
cd motion-edit
Create and activate the conda environment with dependencies that supports inference and training.
- Note: some models like UltraEdit requires specific dependencies on the diffusers library. Please refer to their official repository to resolve dependencies before running inference.
conda env create -f environment.yml
conda activate motionedit
Finally, configure your own huggingface token to access restricted models by modifying YOUR_HF_TOKEN_HERE in inference/run_image_editing.py.
We have released our MotionEdit-Bench on Huggingface. In this Github Repository, we provide code that supports easy inference across open-source Image Editing models: Qwen-Image-Edit, Flux.1 Kontext [Dev], InstructPix2Pix, HQ-Edit, Step1X-Edit, UltraEdit, MagicBrush, and AnyEdit.
The inference script default to using our MotionEdit-Bench, which will download the dataset from Huggingface. You can specify a cache_dir for storing the cached data.
Additionally, you can construct your own dataset for inference. Please organize all input images into a folder INPUT_FOLDER and create a metadata.jsonl in the same directory. The metadata.jsonl file must at least contain entries with 2 entries:
{
"file_name": IMAGE_NAME.EXT,
"prompt": PROMPT
}
Then, load your dataset by:
from datasets import load_dataset
dataset = load_dataset("imagefolder", data_dir=INPUT_FOLDER)
Use the following command to run inference on MotionEdit-Bench with our MotionNFT Huggingface checkpoint, trained on MotionEdit with Qwen-Image-Edit as the base model:
python inference/run_image_editing.py \
-o "./outputs/" \
-m "motionedit" \
--seed 42
<!-- ## Authors
[Yixin Wan](https://elainew728.github.io/)<sup>1,2</sup>, [Lei Ke](https://www.kelei.site/)<sup>1</sup>, [Wenhao Yu](https://wyu97.github.io/)<sup>1</sup>, [Kai-Wei Chang](https://web.cs.ucla.edu/~kwchang/)<sup>2</sup>, [Dong Yu](https://sites.google.com/view/dongyu888/)<sup>1</sup>
<sup>1</sup>Tencent AI, Seattle <sup>2</sup>University of California, Los Angeles
-->
@misc{wan2025motioneditbenchmarkinglearningmotioncentric,
title={MotionEdit: Benchmarking and Learning Motion-Centric Image Editing},
author={Yixin Wan and Lei Ke and Wenhao Yu and Kai-Wei Chang and Dong Yu},
year={2025},
eprint={2512.10284},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2512.10284},
}