Skip to content
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

Fixing two issues in RayMarcher and VolumeRendering #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnhwkim
Copy link

@jnhwkim jnhwkim commented Jun 16, 2023

This pull request addresses two issues that were identified in the RayMarcher and Volume Rendering code:

  1. Random Order Aggregation in RayMarcher: Previously, the samples were aggregated in random order during the forward pass. To ensure correct calculations of dL_drays_o and dL_drays_d using rays_a, I have introduced a sorting mechanism to organize the aggregation process appropriately. Although this fix can be improved using CUDA implementation, it still performs well with reasonable speed.

  2. Incorrect Gradient from Opacity: There was a problem with the gradient calculation from Opacity, which has now been rectified. The changes align the gradient calculation with the forward pass, ensuring accurate results. These fixes enhance the functionality and accuracy of the RayMarcher implementation.

This pull request addresses two issues that were identified in the RayMarcher code:

1. Random Order Aggregation in RayMarcher: Previously, the samples were being aggregated in a random order during the forward pass. To ensure correct calculations of dL_drays_o and dL_drays_d using rays_a, I have introduced a sorting mechanism to organize the aggregation process appropriately. Although this fix can be improved using CUDA implementation, it still perform well with reasonable speed.

2. Incorrect Gradient from Opacity: There was a problem with the gradient calculation from opacity, which has now been rectified. The changes made align the gradient calculation with the forward pass, ensuring accurate results.
These fixes enhance the functionality and accuracy of the RayMarcher implementation.
@jnhwkim jnhwkim mentioned this pull request Jun 16, 2023
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