cleinc / bts

From Big to Small: Multi-Scale Local Planar Guidance for Monocular Depth Estimation
GNU General Public License v3.0
628 stars 177 forks source link

Fix path joining using os module #51

Closed kHarshit closed 4 years ago

kHarshit commented 4 years ago

Fix path joining using os module (as you did in bts_dataloader.py), which otherwise doesn't join paths e.g.

>>> os.path.join('DepthDataset/test/', '/10_007/depth_img.png')                   
'/10_007/depth_img.png'
>>> os.path.join('DepthDataset/test', './' + '10_007/depth_img.png')              
'DepthDataset/test/./10_007/depth_img.png'
cogaplex-bts commented 4 years ago

Thanks very much for this patch.