JiawangBian / sc_depth_pl

SC-Depth (V1, V2, and V3) for Unsupervised Monocular Depth Estimation Webpage:https://jiawangbian.github.io/sc_depth_pl/
GNU General Public License v3.0
438 stars 70 forks source link

BONN and TUM depth #29

Closed Uhall closed 1 year ago

Uhall commented 1 year ago

Hi, What is the scale coefficient of the depth ground truth images in the BONN and TUM dataset you provided? I only found out how to deal with nyu, kitti and ddad.

if self.dataset == 'nyu':
    depth = torch.from_numpy(
        imread(self.depth[index]).astype(np.float32)).float()/5000
elif self.dataset == 'kitti' or self.dataset == 'ddad':
    depth = torch.from_numpy(load_sparse_depth(
        self.depth[index]).astype(np.float32))

Looking forward to your reply. Thanks.

JiawangBian commented 1 year ago

sorry for the inconvenience. I have updated it.

Uhall commented 1 year ago

Thank you so much for the speedy reply.