dcharatan / flowmap

[3DV 2025] Code for "FlowMap: High-Quality Camera Poses, Intrinsics, and Depth via Gradient Descent" by Cameron Smith*, David Charatan*, Ayush Tewari, and Vincent Sitzmann
https://cameronosmith.github.io/flowmap/
MIT License
893 stars 87 forks source link

Advice on how to run the code on custom videos #2

Closed antoan closed 6 months ago

antoan commented 6 months ago

Hi, thank you for making this public.

I wanted to ask if I can run this on video frames in the wild or if there are any additional input constraints to satisfy, like resolution.

Is a 360 degree camera trajectory required?

My aim is to exact unknown camera intrinsic and camera pose of an ceiling mounted uncalibrated PTZ camera inside an industrial hanger.

Thanks in advance.

dcharatan commented 6 months ago

In-the-wild videos should work as long as they don't have very unusual focal lengths. For an arbitrary video, I would follow these steps:

You don't necessarily need a 360-degree sequence. We tried both 360-degree sequences and forward-facing sequences. You could try sequences with multiple loops, but be warned that FlowMap doesn't have a loop closure mechanism (this would be an exciting direction for future work!).

Note that FlowMap assumes a constant focal length across the video. Also, if your video has a focal length that's very zoomed in or zoomed out, you might have to tweak the focal length candidates here.

leo-frank commented 6 months ago

@antoan btw, you should also assume there are no moving objects in the scene.

dcharatan commented 6 months ago

@leo-frank Makes a good point as well! Small moving objects (e.g., people walking in the background of some of the Tanks and Temples scenes) are usually fine, but large moving objects will confuse FlowMap.