nianticlabs/manydepth

Calculate the gt depth for Cityscape images

wangjiyuan9 opened this issue · 3 comments

Dear:
First of all, thank you for your amazing paper !
I encountered a problem when I read your public code:
I‘d like to calculate the gt_depth of the image for the training part (not all). Do you still have the Calculation code ?
Thank you for your time and help!

hello?

hi?

Hi sorry for the delay - Cityscapes provide intrinsics, camera baseline and disparity map, so to recover the depth map you simply do:
depth = focal length [in pixels] x baseline [in metres] / disparity