autonomousvision / unimatch

[TPAMI'23] Unifying Flow, Stereo and Depth Estimation
https://haofeixu.github.io/unimatch/
MIT License
1.05k stars 106 forks source link

Intrisic parameters and poses? #2

Closed noobtoob4lyfe closed 1 year ago

noobtoob4lyfe commented 1 year ago

Hi guys.
Do I need to generate Intrinsic and pose files in some external software in order to use "main_depth.py" with my own images? If so, can I use colmap for that?

haofeixu commented 1 year ago

Yes, we need the intrinsic and pose files for depth prediction, and they can be produced with colmap. You can refer to our demo files on Scannet (https://github.com/autonomousvision/unimatch/tree/master/demo/depth-scannet) for the file format.

noobtoob4lyfe commented 1 year ago

Thanks for the quick reply!
That link takes me to the same text files that inspired this question in the first place however. How should I parse those mysterious numbers in those text files? For example, is that a set of quaternions for the poses? If so, are they in the following order "QW, QX, QY, QZ, TX, TY, TZ,"? Does the intrinsic file contain the focal length, lens distortion, etc? Is there a guide or legend for what these numbers mean? Thanks!

haofeixu commented 1 year ago

Currently we are using ScanNet's data format for intrinsic and pose parameters, maybe taking a look at the data loading code (https://github.com/autonomousvision/unimatch/blob/master/dataloader/depth/datasets.py#L73-L80) would make it clearer. Hope it helps, thanks.