Accepted ICML 2026 Paper: Riemannian MeanFlow for One-Step Generation on Manifolds.
- Install the dependencies:
cd rmf
conda env create -f environment.yaml -n rmf- Activate the environment:
conda activate rmf- For the experimental data, please follow the instructions given in the Riemannian Flow Matching repository and Riemannian Consistency Model. The structure should be:
rmf/
├── configs
├── data
├──raw
├──earth
├──top500
├──rna
├── rmf- Run the experiment. For example,
# earth fire
python -m rmf.train experiment=meanflow/meanflow_earth_fire trainer=gpu seed=0
# torus rna
python -m rmf.train experiment=meanflow/meanflow_amino_rna trainer=gpu seed=0
# SO(3)
python -m rmf.train experiment=meanflow/meanflow_so3 trainer=cpu seed=0- Get data:
There are 8836 files in the acronym grasp dataset.
There are 7897 files in the ShapeNetSem dataset that follows the same format.
Both parts of the data are necessary.
- Project Structure
├── data/
│ ├── grasp
│ └── meshes
├── src/
│ ├── core/
│ ├── data/
│ └── models/
├── scripts/
│ ├── train_mlp.py
│ └── train_mlp_1000.py- Install the dependencies:
cd grasp
uv venv
uv pip install -e .- Run the experiment. For example,
# 200 sample small experiment
CUDA_VISIBLE_DEVICES=0 python -m scripts.train_mlp
# 2000 sample experiment
CUDA_VISIBLE_DEVICES=0 python -m scripts.train_mlp_1000The experiment can be conducted by following the steps outlined in this project: DNA Frame RMF.
Note: Evaluating MSE in this project requires a pretrained Sei model. While the project is implemented in JAX, the Sei model is built in PyTorch, so the model parameters need to be converted from PyTorch to JAX before evaluation.
The experiment can be conducted by following the steps outlined in this project: Protein Frame RMF
Note: Evaluating the scRMSD score in this project requires loading the pretrained ProteinMPNN and ESMFold models. Since these models require a different environment from the main project, their dependencies need to be configured separately.
The evaluation procedure is as follows:
# Generate 100 samples
python -m experiments.inference_se3_flowmaps
# Navigate to the directory containing the scRMSD evaluation code
cd protein_rewards/Scaffold-Lab
# Run the evaluation script
# Before running, please modify the configuration file:
# Protein-RMF-main/protein_rewards/Scaffold-Lab/config/unconditional.yaml
python -m scaffold_lab.unconditional.refoldingThis project builds upon several excellent open-source projects.
We sincerely thank the authors and contributors of these projects for making their code publicly available.
1.Riemannian Flow Matching repository
2.Generalised Flow Maps
3.Riemannian Consistency Model
4.RFM-Grasp
5.DNA Frame RMF
6.Protein Frame RMF