Instructions to use lmquan/SC-CMJP-Edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lmquan/SC-CMJP-Edit with Diffusers:
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("lmquan/SC-CMJP-Edit", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" 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] - Notebooks
- Google Colab
- Kaggle
SC-CMJP-Edit
Concurrent image editing, grounded understanding and reasoning in one denoising trajectory. This is the image-editing model from Concurrent Image Understanding and Generation: Self-Correcting Coupled Markov Jump Processes (NeurIPS 2026).
📄 Paper · 🌐 Project page · 💻 Code · 📚 Data
Given a source image and an editing instruction, the model generates three things at the same time with the CO₂Jump sampler:
- a reasoning trace about the edit,
- SOURCE / TARGET scene graphs with bounding boxes for every object (grounded understanding),
- the edited image.
The model is Lumina-DiMOO (8B masked diffusion MLLM) fine-tuned on JEdit-1M with shared-timestep, asymmetric cross-modal masking.
Usage
git clone https://github.com/coupled-jump/sc-cmjp.git && cd sc-cmjp
pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cu121 && pip install -r requirements.txt
python scripts/infer.py --image examples/edit/hiker.jpg \
--prompt "Add a person walking along the dirt path, facing toward the ocean, wearing a backpack and casual hiking clothes." --save_gif
from co2jump import CO2JumpPipeline
pipe = CO2JumpPipeline.from_pretrained("lmquan/SC-CMJP-Edit")
out = pipe("examples/edit/deer.jpg", "Add a deer standing near the edge of the snow-covered forest.", task="edit")
out.image.save("edit.png"); print(out.thinking, out.answer)
Default sampler: 256 steps (512 for the paper's table numbers), cosine schedule, image CFG 4 / 2, self-correction σ = 0.01 in t ∈ [0.25, 0.75), 512×512.
Results (ImgEdit-Bench, same model, different samplers)
| Sampler | ImgEdit ↑ | mAP src ↑ | mAP tgt ↑ | mAP overall ↑ |
|---|---|---|---|---|
| MDM | 1.78 | 0.386 | 0.322 | 0.354 |
| ReMDM | 1.73 | 0.388 | 0.318 | 0.353 |
| MMaDA-Parallel | 1.44 | 0.366 | 0.304 | 0.335 |
| CO₂Jump | 1.93 | 0.392 | 0.346 | 0.369 |
Intended use and limitations
Research on joint multimodal generation. Like any image-editing model, it can be misused to create misleading content; please don't. Bounding boxes are the model's own predictions and can be wrong. Outputs are 512×512.
License
Apache 2.0, derived from Lumina-DiMOO (Apache 2.0). The vqvae/ folder is the Lumina-DiMOO VQ-VAE.
Citation
@inproceedings{le2026concurrent,
title = {Concurrent Image Understanding and Generation: Self-Correcting Coupled Markov Jump Processes},
author = {Le, Minh-Quan and Comas, Armand and Lattas, Alexandros and Moschoglou, Stylianos and V{\'e}lez, Pedro and Raj, Amit and Germuth, Aaron and Beeler, Thabo and Samaras, Dimitris and Qiu, Di},
booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
year = {2026}
}
- Downloads last month
- 147
Model tree for lmquan/SC-CMJP-Edit
Base model
Alpha-VLLM/Lumina-DiMOO