Computing Wasserstein-P Distance Between Images with Linear Cost
Abstract
When the images are formulated as discrete measures, computing Wasserstein-p distance between them is challenging due to the complexity of solving the corresponding Kantorovich's problem. In this paper, we propose a novel algorithm to compute the Wasserstein-p distance between discrete measures by restricting the optimal transport (OT) problem on a subset. First, we define the restricted OT problem and prove the solution of the restricted problem converges to antorovich's OT solution. Second, we propose the SparseSinkhorn algorithm for the restricted problem and provide a multi-scale algorithm to estimate the subset. Finally, we implement the proposed algorithm on CUDA and illustrate the linear computational cost in terms of time and memory requirements. We compute Wasserstein-p distance, estimate the transport mapping, and transfer color between color images with size ranges from 64x64 to 1920x1200. (Our code is available at https://github.com/ucascnic/CudaOT)
Cite
Text
Chen et al. "Computing Wasserstein-P Distance Between Images with Linear Cost." Conference on Computer Vision and Pattern Recognition, 2022. doi:10.1109/CVPR52688.2022.00060Markdown
[Chen et al. "Computing Wasserstein-P Distance Between Images with Linear Cost." Conference on Computer Vision and Pattern Recognition, 2022.](https://mlanthology.org/cvpr/2022/chen2022cvpr-computing/) doi:10.1109/CVPR52688.2022.00060BibTeX
@inproceedings{chen2022cvpr-computing,
title = {{Computing Wasserstein-P Distance Between Images with Linear Cost}},
author = {Chen, Yidong and Li, Chen and Lu, Zhonghua},
booktitle = {Conference on Computer Vision and Pattern Recognition},
year = {2022},
pages = {519-528},
doi = {10.1109/CVPR52688.2022.00060},
url = {https://mlanthology.org/cvpr/2022/chen2022cvpr-computing/}
}