YufeiWang777 / LRRU

Official implementation of ``LRRU: Long-short Range Recurrent Updating Networks for Depth Completion'', ICCV 2023.
75 stars 2 forks source link

dataloaders utils.py -> read_depth #16

Closed akaibai320 closed 1 month ago

akaibai320 commented 2 months ago

Thank you for your nice work! About the utils.py of dataloaders, the read_depth function has an assert: assert (np.max(image_depth) == 0) or (np.max(image_depth) > 255), \ "np.max(depth_png)={}, path={}".format(np.max(image_depth), file_name) is this wrong? I think the max should be in 0 to 255.

YufeiWang777 commented 1 month ago

Hi, the assert aims to make sure that the max is in 0 to 255.