sxyu / svox2

Plenoxels: Radiance Fields without Neural Networks
BSD 2-Clause "Simplified" License
2.79k stars 360 forks source link

the function of "bash scripts/proc_colmap.sh <img_dir>"? #60

Open eternaldolphin opened 2 years ago

eternaldolphin commented 2 years ago

As I see the command "bash scripts/proc_colmap.sh " is used to process "images from a normal perspective camera" Dose it means the parameters are not from the colmap but from the real world? And how to get the "images from a normal perspective camera" and corresponding parameters?like some specific camera?

Visuals3D commented 2 years ago

Colmap will calculate everything you need for you. Just install colmap (which is sadly not that easy on linux...). Take a lot of pictures around an objekt with as much locked settings less depth of field as possible as well as constant lighting from all sides. Most importantly dont change the focal length aka zoom while taking the images. Then you can run bash scripts/proc_colmap.sh , with pointing to a folder with all your images in it and it will create a new datastructure with everything you need to train the scene later on.

"images from a normal perspective camera" just means to not use some crazy fish eye lenses or extremely high zoom.

Maby you want to play around with the colmap gui version https://demuc.de/colmap/ to see what colmap is doing for you and if it creates the desired results of calculating the camera positions around your object correctly.

For me it was creating very bad results with the default settings set inside this file https://github.com/sxyu/svox2/blob/master/opt/scripts/run_colmap.py at the lines below 192 and 227. While using colmap gui showed very good results. So i removed the default settings from the python file to achive the same results.