Summary

RF-Inversion is a research method for semantic image inversion and editing using stochastic rectified differential equations, presented at ICLR 2025 by researchers from UT Austin and Google. It addresses the inversion and editing of real images using rectified flow models such as Flux, where inversion has been underexplored compared to diffusion models.

Key Features

Semantic image inversion and editing using rectified flows such as Flux
No additional training, latent optimization, prompt tuning, or complex attention processors
Inverts reference style images without text descriptions
Stylization from a single reference image and text prompts
Semantic editing of content images, including age, gender, and object insertion
Stroke-to-image synthesis
Cartoonization with prompt-based facial expressions
Stochastic Flux sampler (FluxSDE) with the same marginals as deterministic Flux
Code available on GitHub with ComfyUI and Diffusers integrations

About RF Inversion


The method maps a possibly corrupted image to structured noise with a controlled forward ODE, conditions the reverse process on the desired text, and generates the edited image with a controlled reverse ODE. It requires no additional training, latent optimization, prompt tuning, or complex attention processors, and derives its vector field from dynamic optimal control via a linear quadratic regulator. The framework also yields a stochastic sampler for Flux (FluxSDE) with the same marginals as deterministic Flux sampling.


RF-Inversion achieves state-of-the-art zero-shot inversion and editing, demonstrated on LSUN-Bedroom, LSUN-Church, and SFHQ for stroke-to-image synthesis and semantic image editing, including stylization from a single reference image, cartoonization, and edits such as adding glasses or changing age and gender. Code is available on GitHub with ComfyUI and Diffusers integrations.

FAQs about RF Inversion

Get more likes & reach the top of search results by adding this button on your site!

Embed button preview - Light theme
Embed button preview - Dark theme
TurboType Banner

Subscribe to the AI Search Newsletter

Get top updates in AI to your inbox every weekend. It's free!