Skip to content

PixelRGBDDistribution: Additional tests on invalid RGBD values #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

horizon-blue
Copy link
Contributor

This PR includes some additional tests to make sure the behavior of the logpdf method is what we expect when it receives invalid RGBD values ([-1., -1., -1., -1.]). Since the distribution is defined on the pixel level, it doesn't really expect the observed RGBD to be invalid, so when we use it to vmap over vertices, we need to handle the case where a vertex does not hit the image plane manually. I'm also updating the image kernel slightly to make sure that we can handle those corner cases.

(note that this is different from the case where a pixel does not have an associated vertex, which can be handle natively in the pixel distribution)

Test Plan

pytest tests/gen3d/test_pixel_rgbd_kernels.py

@horizon-blue horizon-blue merged commit 6639183 into gen3d Sep 11, 2024
6 of 7 checks passed
@horizon-blue horizon-blue deleted the xyw/gen3d/rgbd-kernel-test branch September 11, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant