FreeFlow-L · pretrain

Cross-view pretraining · 211,677,376 parameters

Code | arXiv

Setup

Clone the code repository and install the package (Python ≥3.10, PyTorch ≥2.5):

git clone https://github.com/msu-video-group/freeflow.git
cd freeflow
python -m pip install -e ".[examples]"

See the README for uv/Conda setup and CUDA installation. The examples below use a CUDA-enabled PyTorch build.

Usage

import torch
from freeflow import FreeFlowPretraining, normalize_images

model = FreeFlowPretraining.from_pretrained("a-yakovenko/FreeFlow-L-pretrain").eval().cuda()
# Two RGB views, resized to 224 × 224; random pixels for a minimal example.
images = normalize_images(torch.randint(0, 256, (1, 2, 3, 224, 224))).cuda()
with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
    reconstruction, mask, target = model(images[:, 0], images[:, 1])

Returns reconstructed 8×8 patches, a sampled mask, and target patches. This checkpoint does not estimate optical flow.

Citation

@inproceedings{bargatin2026freeflow,
  title={FreeFlow: A Bias-free Hierarchical Transformer for Optical Flow Estimation},
  author={Bargatin, Vladislav and Yakovenko, Alexander and Abud, Khaled and Vatolin, Dmitriy},
  booktitle={European Conference on Computer Vision (ECCV)},
  year={2026}
}
Downloads last month
48
Safetensors
Model size
0.2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for a-yakovenko/FreeFlow-L-pretrain

Finetunes
1 model

Collection including a-yakovenko/FreeFlow-L-pretrain

Paper for a-yakovenko/FreeFlow-L-pretrain