ShenhanQian/Flow4RT
소개
Official repo for "Flow4RT: Seeing Motion through Geometry"
머신러닝측정된 스타 증가
- in 24h
- 기록 수집 중
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFlow4RT: Seeing Motion through Geometry
Shenhan Qian1,2 Shangzhe Wu3 Daniel Cremers1,2
1Technical University of Munich 2Munich Center for Machine Learning (MCML) 3University of Cambridge

Flow4RT reconstructs dynamic scenes and tracks their points in world space from a monocular video in a single feed-forward pass. For every view it predicts a local point map, and toward a target view a displaced point map with a rigidity map; their rigidity-weighted alignment recovers camera motion, reconstruction and 3D tracks.
Repository layout
flow4rt/ the method (importable package)
model/ network: geometry blocks, motion blocks, DPT head, alignment
inference.py frame loading/resizing and single-pass inference
demo.py run Flow4RT on a video or a folder of frames
app.py web demo (Gradio) with the viewer
visualize.py write an interactive 4D viewer (HTML) of the demo output
viewer/ the viewer's page, script and vendored three.js
examples/ example videos (sources in examples/CREDITS.md)
benchmarks/ method-agnostic evaluation, shared with the baselines
methods/ one adapter per method (Flow4RT, baselines) with a common predict() interface
worldtrack/ WorldTrack (world-space 3D tracking and 4D reconstruction)
video_depth_pose/ video depth and camera pose (MonST3R protocol)
efficiency/ throughput and peak memory against clip length
third_party/ official repositories, cloned at pinned commits (third_party/clone.sh)
Installation
conda create -n flow4rt python=3.11 && conda activate flow4rt # any Python >= 3.10
pip install torch torchvision # matching your CUDA version
pip install -e . # add [benchmarks] for the evaluation dependencies
Download the weights:
hf download Shenhan/Flow4RT flow4rt.safetensors --local-dir checkpoints
Demo
Command line
python demo.py --input examples/bmx_bowl.mp4 --output_dir outputs/demo # or any video / folder of frames
Writes predictions.npz (depth, confidence, rigidity, camera poses, world-space point maps and
world-space tracks of the first frame's pixels).
To explore the result in 4D (playback, tracking and reconstruction views, trajectories, cameras):
python visualize.py outputs/demo/predictions.npz # writes outputs/demo/viewer.html
Open viewer.html in a browser; the file is self-contained and works offline.

Web interface
pip install -e .[app]
python app.py # http://localhost:7860; --share for a public link
Upload a video (up to 64 frames) and explore the result in the viewer, which can be downloaded as a self-contained HTML file.
Python
from flow4rt.inference import load_model, read_frames, frames_to_tensor, predict
model = load_model("checkpoints/flow4rt.safetensors")
pred = predict(model, frames_to_tensor(read_frames("video.mp4", max_frames=64)))
pred["tracks"] # (T, H, W, 3) frame-0 pixels at every time, in world (= frame-0 camera) coordinates
pred["points"] # (T, H, W, 3) pointmap of every frame in world coordinates
pred["cam2world"] # (T, 4, 4)
Evaluation
WorldTrack
The metric code is taken from the official St4RTrack repository:
bash third_party/clone.sh St4RTrack
Download the WorldTrack data
to data/worldtrack_release/{adt_mini,pstudio_mini,po_mini,ds_mini,tum}, then
python -m benchmarks.worldtrack.run --method flow4rt --weights checkpoints/flow4rt.safetensors
Results are written to outputs/worldtrack/<method>/: one JSON per subset with per-clip and
averaged metrics, and summary.txt in the column order of the paper table.
Video depth and camera pose
We follow the protocol of MonST3R and use its metric code:
bash third_party/clone.sh MonST3R
Prepare Sintel, Bonn, KITTI, TUM-dynamics and ScanNet as described in MonST3R's
data/evaluation_script.md,
in a folder data/monst3r/{sintel,bonn,kitti,tum,scannetv2}, then
python -m benchmarks.video_depth_pose.run --method flow4rt --weights checkpoints/flow4rt.safetensors
| benchmark | sequences | metrics |
|---|---|---|
sintel_depth, bonn_depth, kitti_depth |
23, 5, 13 | Abs Rel, δ<1.25 after per-sequence scale & shift |
sintel_pose, tum_pose, scannet_pose |
14, 8, 94 | ATE, RPE trans, RPE rot after Sim(3) alignment |
Each sequence is processed in a single forward pass. Predictions are stored in MonST3R's format
(<dataset>/<seq>/frame_XXXX.npy, pred_traj.txt) and scored from disk, so predictions produced
elsewhere can be scored with --method none --output_dir <dir>. Six ScanNet scenes with non-finite
ground-truth poses are skipped.
Runtime efficiency
Throughput and peak GPU memory for producing both world-space point maps and tracks, for clips of
8 to 128 views (the first frames of the WorldTrack clip po_mini/dancingroom1_3rd1_18):
python -m benchmarks.efficiency.run --method flow4rt --weights checkpoints/flow4rt.safetensors
python -m benchmarks.efficiency.summarize # table at 64 views and outputs/efficiency/scaling.png
Only GPU work is timed, from the model input to both outputs; decoding and resizing the frames are excluded.
Acknowledgements
This code builds on 4RC, Depth Anything 3, DINOv2, VGGT, DUSt3R, St4RTrack and MonST3R. See the headers of the individual files for their origin and changes.
License
The code is released under CC BY-NC-SA 4.0, consistent with the non-commercial licenses of the works it builds on. Third-party components keep their original licenses; see NOTICE.
Citation
@article{qian2026flow4rt,
title = {Flow4RT: Seeing Motion through Geometry},
author = {Qian, Shenhan and Wu, Shangzhe and Cremers, Daniel},
year = {2026},
}
관련 프로젝트 살펴보기
불러오는 중…