yindaz / DeepCompletionRelease

Deep Depth Completion of a Single RGB-D Image
http://deepcompletion.cs.princeton.edu/
563 stars 141 forks source link

something wrong with my own depth map #42

Closed h1063135843 closed 3 years ago

h1063135843 commented 3 years ago

I run the demo successfully, and the result looks good.But when I test my own depth map, it seems the program doesn't work. The following picture is the result shown in the matlab. 图片 And this is the input color. 图片 Another example: 图片 图片 The result is obviously incorrect. What's the reason? And how can I solve it? The depth sensor is azure kinect.

jiunyen-ching commented 3 years ago

From the input images, it looks like there are some pixels with values close to zero at the border of the white mask. So (I think) the region with missing depth will be affected by these pixels during inference.

h1063135843 commented 3 years ago

From the input images, it looks like there are some pixels with values close to zero at the border of the white mask. So (I think) the region with missing depth will be affected by these pixels during inference.

Thanks a lot. You are right! To meet the requirement of memory size, I downsample the depth map. And it's the reason why those pixels near boundary with values close to zero occur.

ZzzBHD commented 3 years ago

So how you solve this problem?Use the original depth maps?Since I use the Azure Kinect either.

h1063135843 commented 3 years ago

So how you solve this problem?Use the original depth maps?Since I use the Azure Kinect either.

make those depth lower than some threshold to zero.

jiunyen-ching commented 3 years ago

@ZzzBHD Thresholding to zero as @h1063135843 suggested is one way to do it because the algorithm accepts values at 0 as the inpainting-mask. Alternatively, you can prepare a mask at full resolution, dilate the mask then downsample the mask to your needed resolution.

ZzzBHD commented 3 years ago

So how you solve this problem?Use the original depth maps?Since I use the Azure Kinect either.

make those depth lower than some threshold to zero.

Thanks a lot!I will try this, and look forward to getting your help if I meet problems again

Darker-zq commented 2 years ago

@h1063135843 Do you have any datasets provided by the author? If so, please send me a copy.Thaks! My Email is 01170218@cumt.edu.cn

Spero-felix commented 5 months ago

@h1063135843 Do you have any datasets provided by the author? If so, please send me a copy.Thaks! My Email is 01170218@cumt.edu.cn

Do you have the datasets? if so, can you send to my email? My email is whznsphjhj@gmail.com