Repositioning the Subject within Image

Yikai Wang, Chenjie Cao, Ke Fan, Qiaole Dong, Yifan Li, Xiangyang Xue, Yanwei Fu · DOI

Introduction

While generative AI has made significant strides in image editing, most existing tools are limited to static modifications like style transfer or object deletion. Dynamic manipulation—moving a subject from one location to another within a scene—remains a complex challenge. This task requires a system to simultaneously solve three distinct problems: filling the void left by the removed subject (Subject Removal), reconstructing any previously obscured parts of the subject (Subject Completion), and ensuring the subject matches the lighting and perspective of its new environment (Harmonization).

The SEELE Framework

The researchers introduce SEELE (SEgment-gEnerate-and-bLEnd), a unified framework designed to handle these challenges within a single diffusion model. Unlike traditional methods that rely on complex text prompts, SEELE utilizes a novel Task Inversion technique. This approach learns specific "instructional embeddings" that guide a frozen diffusion model to perform specific editing behaviors.

The SEELE framework addresses three core tasks: (a) Subject Removal, (b) Subject Completion, and (c) Subject Harmonization.

The pipeline operates in three stages:

  1. Pre-processing: Employs Segment Anything (SAM) for subject identification and MiDaS for depth estimation to maintain correct perspective and occlusion handling.
  2. Manipulation: The diffusion model applies learned task-inversion prompts to fill holes and reconstruct the subject.
  3. Post-processing: Local harmonization via LoRA adapters adjusts lighting and generates realistic shadows for the new placement.
Example of a repositioning task where a subject (the child) is moved along a specified path.

Experimental Evaluation

The framework was trained using MSCOCO for removal/completion and iHarmony4 for harmonization. To evaluate performance, the authors introduced the ReS (Real-world Subject repositioning) benchmark, a dataset of 100 real-world image pairs with high-quality annotations.

SEELE demonstrated significant improvements over standard Stable Diffusion (SD) baselines. Quantitatively, on the ReS dataset, SEELE achieved a Quality score of 0.290 (vs. 0.090 for SD) and a Consistency score of 0.329 (vs. 0.057 for SD). User studies confirmed these findings, with participants preferring SEELE for its ability to avoid "hallucinating" random objects and its superior subject reconstruction.

Conclusion and Future Work

SEELE represents a shift from descriptive prompting to functional instruction in image editing. By unifying removal, completion, and blending into a single inpainting-based task, it provides a more elegant solution for dynamic subject manipulation. Future research will focus on open-vocabulary amodal mask generation to automate the detection of hidden subject parts and improving the computational efficiency of high-fidelity shadow generation.

Summary updated

BibTeX
@misc{wang2024repositioning,
  author = {Yikai Wang and Chenjie Cao and Ke Fan and Qiaole Dong and Yifan Li and Xiangyang Xue and Yanwei Fu},
  title = {{Repositioning the Subject within Image}},
  year = {2024},
  eprint = {2401.16861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.16861},
}
Figure