Skip to content

PixelRGBDDistribution: Additional tests on invalid RGBD values - #159

Merged
horizon-blue merged 1 commit into
gen3dfrom
xyw/gen3d/rgbd-kernel-test
Sep 11, 2024
Merged

PixelRGBDDistribution: Additional tests on invalid RGBD values#159
horizon-blue merged 1 commit into
gen3dfrom
xyw/gen3d/rgbd-kernel-test

Conversation

@horizon-blue

Copy link
Copy Markdown
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
@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