Motion Guidance: Diffusion-Based Image Editing with Differentiable Motion Estimators

Daniel Geng, Andrew Owens
1/1/2024
diffusion-flow

No official code found. Best implementation: dangeng/motion_guidance (108 stars, last commit 2026-01-02).

Abstract

Diffusion models are capable of generating impressive images conditioned on text descriptions, and extensions of these models allow users to edit images at a relatively coarse scale. However, the ability to precisely edit the layout, position, pose, and shape of objects in images with diffusion models is still difficult. To this end, we propose motion guidance, a zero-shot technique that allows a user to specify dense, complex motion fields that indicate where each pixel in an image should move. Motion guidance works by steering the diffusion sampling process with the gradients through an off-the-shelf optical flow network. Specifically, we design a guidance loss that encourages the sample to have the desired motion, as estimated by a flow network, while also being visually similar to the source image. By simultaneously sampling from a diffusion model and guiding the sample to have low guidance loss, we can obtain a motion-edited image. We demonstrate that our technique works on complex motions and produces high quality edits of real and generated images.

View on arXivView PDF

Code Implementations(1)

Code for ICLR 2024 paper "Motion Guidance: Diffusion-Based Image Editing with Differentiable Motion Estimators"

1087C++, CudaJan 17, 20249 months ago

Similar Papers

Cite this paper

@article{geng2024motion,
  title  = {Motion Guidance: Diffusion-Based Image Editing with Differentiable Motion Estimators},
  author = {Daniel Geng and Andrew Owens},
  year   = {2024},
  eprint = {2401.18085},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.18085},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.18085.svg)](https://codeofpaper.com/paper/2401.18085)

Discussion