FPT is a novel framework for directly predicting the distribution of local motion, conditioned on sparse interactions termed "pokes". Unlike traditional methods that typically only enable dense sampling of a single realization of scene dynamics, FPT provides an interpretable, directly accessible representation of multi-modal scene motion, its dependency on physical interactions, and the inherent uncertainties of scene dynamics. The model has been evaluated on several downstream tasks, demonstrating competitive performance in dense face motion generation, articulated object motion estimation, and moving part segmentation from pokes.
FPT predicts distributions of potential motion for sparse points. Left: the paw pushing the hand down will force the hand downwards, resulting in a unimodal distribution. Right: the hand moving down results in two modes, the paw following along or staying put.
Usage
The easiest way to try FPT is via our interactive demo:
Compilation is optional but recommended for a better user experience. A checkpoint will be downloaded from Hugging Face by default if not explicitly specified via the CLI.
For programmatic usage, the simplest way to use FPT is via
torch.hub
:
import torch
model = torch.hub.load("CompVis/flow_poke_transformer", "fpt_base")
If you wish to integrate FPT into your own codebase, you can copy
model.py
and
dinov2.py
from the
GitHub repository
. The model can then be instantiated as follows:
import torch
from flow_poke.model import FlowPokeTransformer_Base
model: FlowPokeTransformer_Base = FlowPokeTransformer_Base()
state_dict = torch.load("fpt_base.pt") # You would need to download the weights separately
model.load_state_dict(state_dict)
model.requires_grad_(False)
model.eval()
The
FlowPokeTransformer
class contains all necessary methods for various applications. For high-level usage, refer to the
FlowPokeTransformer.predict_*()
methods. For low-level usage, the module's
forward()
can be used.
Citation
If you find our model or code useful, please cite our paper:
@inproceedings{baumann2025whatif,
title={What If: Understanding Motion Through Sparse Interactions},
author={Stefan Andreas Baumann and Nick Stracke and Timy Phan and Bj{\"o}rn Ommer},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
year={2025}
}
Runs of CompVis flow-poke-transformer on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About flow-poke-transformer huggingface.co Model
flow-poke-transformer huggingface.co is an AI model on huggingface.co that provides flow-poke-transformer's model effect (), which can be used instantly with this CompVis flow-poke-transformer model. huggingface.co supports a free trial of the flow-poke-transformer model, and also provides paid use of the flow-poke-transformer. Support call flow-poke-transformer model through api, including Node.js, Python, http.
flow-poke-transformer huggingface.co is an online trial and call api platform, which integrates flow-poke-transformer's modeling effects, including api services, and provides a free online trial of flow-poke-transformer, you can try flow-poke-transformer online for free by clicking the link below.
CompVis flow-poke-transformer online free url in huggingface.co:
flow-poke-transformer is an open source model from GitHub that offers a free installation service, and any user can find flow-poke-transformer on GitHub to install. At the same time, huggingface.co provides the effect of flow-poke-transformer install, users can directly use flow-poke-transformer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
flow-poke-transformer install url in huggingface.co: