JakobEngel / dso

Direct Sparse Odometry
GNU General Public License v3.0
2.3k stars 910 forks source link

Using DSO on TUM-RGBD #202

Closed ryanpike96 closed 5 years ago

ryanpike96 commented 5 years ago

I am trying to compare the VO systems of ORB-SLAM, DSO and SVO and I think TUM-RGBD is a good sequence. Is there a way to run DSO in monocular mode just on the images and timestamps?

Cheers

NikolausDemmel commented 5 years ago

Yes, thats what is done for Kitti or Euroc for example in ldso, which has some support for these dataset formats, see https://github.com/tum-vision/LDSO/tree/master/examples

You can also convert any sequence to the DSO format and run it with the code from the original DSO repo (use mode=1 if you don't have photometric calibration / exposure times).

However, TUM-RGBD has rolling shutter camera, so DSO will probably not work very well. Check the original paper, where geometric-errors / distortions are discussed. There is also a paper on modelling rolling shutter for DSO (but no code online): https://vision.in.tum.de/_media/spezial/bib/schubert2018drso.pdf

ryanpike96 commented 5 years ago

Thankyou for the response Nikolaus! I have managed to get the files loaded and what not, I was just wondering what the FR1.txt file would be, I.e. the camera calibration? Do I use the RadTan or Pinhole model?

ryanpike96 commented 5 years ago

Nevermind I solved it. Thankyou again.

nanoahSR commented 4 years ago

I have a same problem, can you tell me how to solve it?

ryanpike96 commented 4 years ago

Unless you model rolling shutter explicitly, DSO will break down pretty quickly on all but the first scene. I tried a fair bit of tuning too. I am not on my computer right now but when I get home I will send you the FR1.txt file that worked for me.

Ryan

nanoahSR commented 4 years ago

Thank you very much! I wrote the fr1.txt by imitating the Kitti00-02.txt but it is failed. I don't know how to write images size after calibrated (fr1.txt line 4) and "calib.txt'.What did you do it?

pisuto commented 4 years ago

@ryanpike96 hello, I now can run the dataset. but the config file is wrong. could you please share the fr1.txt? Thank you very much.