honeygupta / UW-Net

Code for paper [ICIP 2019] Unsupervised Single Image Underwater Depth Estimation (UW-Net)
MIT License
27 stars 14 forks source link

How do you handle berman's ground-truth #11

Open AttackonMuggle opened 2 years ago

AttackonMuggle commented 2 years ago

Thanks for your reply, but how did you prepare the ground-truth images. Since in evaluate_metrics.py line 41, the gt between 0-255 will all be converted to 0.

Originally posted by @jinjidelinmouren in https://github.com/honeygupta/UW-Net/issues/10#issuecomment-1169921451

AttackonMuggle commented 2 years ago

And you set the nan in gt to 0, did you do this for masking these points when calculating the error?

honeygupta commented 2 years ago

So that was a factor we added because of the pixel range of the depth maps in the Berman's dataset. AFAIR, the depth maps in the dataset are 16 bit images. Therefore, the code in line 41 converts the depth-map to 0-255 range.

honeygupta commented 2 years ago

And you set the nan in gt to 0, did you do this for masking these points when calculating the error?

Yes, we only consider the non-nan pixels for computing the error and this is done to execute that.

AttackonMuggle commented 2 years ago

Get it. I also tried using the pretrained model to calculate the error, but couldn't get the results in Table 1. In addition, I also found that using the finetune model to get the depth, there will be white edges at the bottom of the depth map. Is this what affects my calculation of metrics? fakeB_depth_0_2 I used test.py to get this.

9796l commented 1 year ago

hello I used internet images to test ,the file that i used is test.py to test.I used the pre-trained checkpoint,and i opened the result epoch_0.html ,i didn't find the predicted depth map.i didn't know the reason.when you test,how could you get the depth map?thank you very much.

uw

1980Ninja commented 1 year ago

Hello Honey, I am having the same issue. Please can you point me out what I am doing wrong? I am not using RGBD images. Thanks! fakeB_depth_0_57 inputB_0_57

Zklb-250 commented 8 months ago

Hello Honey, I am having the same issue. Please can you point me out what I am doing wrong? I am not using RGBD images. Thanks! fakeB_depth_0_57 inputB_0_57

Hi, I had the same problem with 3090 before. Then I switched to 2080 and got the right results. For older model frameworks, you might want to try an older graphics card.