Example 1

Image A
Click to view

Source image

Image B
Click to view

Target image

Image C
Click to view

Final result.

Example 2

Image A
Click to view

Source image

Image B
Click to view

Target image

Image C
Click to view

Final result.

Example 3

Image A
Click to view

Source image

Image B
Click to view

Target image

Image C
Click to view

Final result.

This is a mini project I’ve made and supervised by Gabriel PEYRE during my MVA Master year. Optimal Transport basically tackles the problem of transferring a mass distribution from one measured space \((X, \alpha)\) to another measured \((Y, \beta)\).

Source

💡Abstract

The goal of this presentation is to study the optimal transport problem in a context where the initial and target distributions do not have the same mass.

The Kantorovich formulation of the Optimal Transport problem is as follows: Suppose we have two probability measures, \(\alpha\) and \(\beta\), defined on two sets \(X\) and \(Y\), and a cost function \(c(x, y)\) defined on \(X \times Y\). The goal is to find a probability measure \(\gamma\) on \(X \times Y\) that minimizes the transport cost \(\int_{X\times Y}c(x,y) \textrm{d}P(x,y)\) subject to the constraints \(P_{\#}^X \gamma = \alpha\) and \(P_{\#}^Y \gamma = \beta\).

However, this formulation cannot be solved when α and β are not probability measures of the same mass. This study focuses on addressing this issue. We will introduce a more general formulation of the Optimal Transport problem that can handle this case and propose a generalization of the Sinkhorn algorithm to solve it. Additionally, we will demonstrate how this algorithm applies to the Wasserstein barycenter problem and present several illustrations showcasing its performance on different problems. This work follows Chizat et al., 2016.

🐙 A Nice Application

I applied the algorithm presented in the article in the case of color transfer between two images (Figures above). The goal is to transfer the color distribution from one image to the other.

A few illustrations can be found above.