SemFlow: Binding Semantic Segmentation and Image Synthesis via Rectified Flow

Chaoyang Wang, Xiangtai Li, Lu Qi, Henghui Ding, Yunhai Tong +1 more
5/1/2024

No official code found. Best implementation: wang-chaoyang/SemFlow (46 stars, MIT, last commit 2024-12-01).

Abstract

Semantic segmentation and semantic image synthesis are two representative tasks in visual perception and generation. While existing methods consider them as two distinct tasks, we propose a unified framework (SemFlow) and model them as a pair of reverse problems. Specifically, motivated by rectified flow theory, we train an ordinary differential equation (ODE) model to transport between the distributions of real images and semantic masks. As the training object is symmetric, samples belonging to the two distributions, images and semantic masks, can be effortlessly transferred reversibly. For semantic segmentation, our approach solves the contradiction between the randomness of diffusion outputs and the uniqueness of segmentation results. For image synthesis, we propose a finite perturbation approach to enhance the diversity of generated results without changing the semantic categories. Experiments show that our SemFlow achieves competitive results on semantic segmentation and semantic image synthesis tasks. We hope this simple framework will motivate people to rethink the unification of low-level and high-level vision.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2024] SemFlow: Binding Semantic Segmentation and Image Synthesis via Rectified Flow

462PythonMay 28, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2024semflow,
  title  = {SemFlow: Binding Semantic Segmentation and Image Synthesis via Rectified Flow},
  author = {Chaoyang Wang and Xiangtai Li and Lu Qi and Henghui Ding and Yunhai Tong and Ming-Hsuan Yang},
  year   = {2024},
  eprint = {2405.20282},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.20282},
  url    = {https://arxiv.org/abs/2405.20282},
  journal = {NEURIPS 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/2405.20282.svg)](https://codeofpaper.com/paper/2405.20282)

Discussion