NeuRay icon indicating copy to clipboard operation
NeuRay copied to clipboard

depth

Open caiyongqi opened this issue 3 years ago • 3 comments

Hi. In the DTU dataset, I found that there is a big difference between the depth map estimated using colomap (you provided) and the ground truth depth map, have you checked this?

scan1, view 0, 300x400: ground truth depth map: image depth map estimated using colomap: image

Could you check it? Thanks!!!

caiyongqi avatar Oct 31 '22 15:10 caiyongqi

Does this refer to the training set of NeuRay? As for the DTU training dataset, I adopt the processed dataset from PixelNeRF and run the colmap based on this processed version. I'm not sure what cause the difference. It may be caused by the normalization of scale and offset. Since COLMAP indeed will produce some incorrect depth in test time, it would be better to let the model receive these incorrect depth values in training.

liuyuan-pal avatar Nov 01 '22 03:11 liuyuan-pal

Does this refer to the training set of NeuRay? As for the DTU training dataset, I adopt the processed dataset from PixelNeRF and run the colmap based on this processed version. I'm not sure what cause the difference. It may be caused by the normalization of scale and offset. Since COLMAP indeed will produce some incorrect depth in test time, it would be better to let the model receive these incorrect depth values in training.

OK, Thanks! Could you update how to use colomap to get depth map (code or document) if you have time? I believe it will be useful.

caiyongqi avatar Nov 01 '22 14:11 caiyongqi

You may refer to the document of COLMAP. It already provides patch_match_stereo to estimate depth maps and you can read these depth maps from the provided python function like https://github.com/liuyuan-pal/NeuRay/blob/266af33b189ff6cfd7c6ae87a296a208b0219446/dataset/database.py#L129

liuyuan-pal avatar Nov 03 '22 11:11 liuyuan-pal