microsoft / S2R-DepthNet

MIT License
167 stars 34 forks source link

Result about the NYUD-v2 test data on S2RDepthNet #19

Open Airy00 opened 3 years ago

Airy00 commented 3 years ago

Hi, I'm evaluating the trained S2RDepthNet on NYUD-v2 test data by the command you provided, but I can see nothing from the "pred_depth_np" when I use "cv2.imwrite()" to save it, when I print the "pred_depth_np", all data are between 1 and 5, do you know where is the problem ? Look forward to your reply, thank you!

thgpddl commented 2 years ago

cv2.imwrite()默认应该使用了uint8保存,也就是像素值范围为0\~255,在这个范围内显示0\~5的值肯定是看不到的,整个图片应该是全黑。如果你想看到可视化效果,建议可以将0\~5等比缩放到0\~255,然后再保存