fix: use parameters.fov_eps_rad in compute_histogram_equalization#1010
Open
abhinow03 wants to merge 1 commit into
Open
fix: use parameters.fov_eps_rad in compute_histogram_equalization#1010abhinow03 wants to merge 1 commit into
abhinow03 wants to merge 1 commit into
Conversation
The FOV bounds check hardcoded 2 * float32 eps instead of the model's fov_eps_rad (fov_eps_factor * eps, default factor 4), so angles within the model's own tolerance could trip the out-of-bounds assertions and the user-supplied fov_eps_factor had no effect here. Resolves the existing TODO by using the parameter. Fixes nerfstudio-project#973
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
compute_histogram_equalization checks sensor angles against a hardcoded tolerance of 2 * torch.finfo(torch.float32).eps, while the lidar model's own tolerance is parameters.fov_eps_rad (fov_eps_factor * eps, default factor 4). Angles within the model's tolerance can therefore trip the azimuths are out of bounds / elevations are out of bounds assertions, and the user-supplied fov_eps_factor has no effect on this check.
This resolves the existing TODO on that line by using parameters.fov_eps_rad, making the histogram-equalization bounds consistent withvalid_sensor_angles and the CUDA side (Lidars.cuh), which already use fov_eps_rad.
Fixes #973