YufeiWang777 / LRRU

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

dataloaders utils.py -> read_depth #16

Closed akaibai320 closed 6 months ago

akaibai320 commented 7 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 6 months ago

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