ZoeDepth icon indicating copy to clipboard operation
ZoeDepth copied to clipboard

depth contour does not match the object

Open astro-fits opened this issue 1 year ago • 1 comments

Thank you for your excellent work! And I have a question. As what is shown in the following images, it seems that depth contour does not match the RGB image, extending pixels beyond the outer edge of the objects (indicated by the green poly-line). I don't know why and how to restore the depth. Thank you for your attention. rgb output

astro-fits avatar May 23 '23 04:05 astro-fits

Just guessing here , but the models are working on something like 512x512 (and that is considered big). So whatever image you feed it, gets downscaled, you get a depth with matching resolution, and that's upscaled again to your original input size.

That's why the edges will never be perfect.

When you try splitting the image, you'll see that each image will have a different exposure/contrast. The depth scale isn't exactly the same (although Zoe's raw output can make it a lot closer ).

So upscale the output in a fancier way or split the input image , but there is some work involved.

jorismak avatar Jul 23 '23 14:07 jorismak