https://github.com/alexisthual/fugw
Scalable python GPU solvers for fused unbalanced gromov-wasserstein optimal transport problems, with routines and examples to align brain data (fMRI)
https://github.com/alexisthual/fugw
brain-alignment optimal-transport python3
Last synced: 5 months ago
JSON representation
Scalable python GPU solvers for fused unbalanced gromov-wasserstein optimal transport problems, with routines and examples to align brain data (fMRI)
- Host: GitHub
- URL: https://github.com/alexisthual/fugw
- Owner: alexisthual
- License: mit
- Created: 2022-01-27T10:54:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-16T16:44:27.000Z (about 1 year ago)
- Last Synced: 2025-11-30T07:23:20.653Z (7 months ago)
- Topics: brain-alignment, optimal-transport, python3
- Language: Python
- Homepage: https://alexisthual.github.io/fugw/
- Size: 59.1 MB
- Stars: 45
- Watchers: 8
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fused Unbalanced Gromov-Wasserstein for Python




This package implements multiple GPU-compatible PyTorch solvers
to the Fused Unbalanced Gromov-Wasserstein optimal transport problem.
**This package is under active development. There is no guarantee that the API and solvers
won't change in the near future.**
## Installation
**To install this package, make sure you have an up-to-date version of** `pip`.
### From PyPI
In a dedicated Python env, run:
```bash
pip install fugw
```
### From source
```bash
git clone https://github.com/alexisthual/fugw.git
cd fugw
```
In a dedicated Python env, run:
```bash
pip install -e .
```
Contributors should also install the development dependencies
in order to test and automatically format their contributions.
```bash
pip install -e ".[dev]"
pre-commit install
```
Tests run on CPU and GPU, depending on the configuration of your machine.
You can run them with:
```bash
pytest
```
## Citing this work
If this package was useful to you, please cite it in your work:
```bibtex
@article{Thual-2022-fugw,
title={Aligning individual brains with Fused Unbalanced Gromov-Wasserstein},
author={Thual, Alexis and Tran, Huy and Zemskova, Tatiana and Courty, Nicolas and Flamary, Rémi and Dehaene, Stanislas and Thirion, Bertrand},
publisher={arXiv},
doi={10.48550/ARXIV.2206.09398},
url={https://arxiv.org/abs/2206.09398},
year={2022},
copyright={Creative Commons Attribution 4.0 International}
}
```