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

About raw2alpha cuda code #36

Closed
MinJunKang opened this issue Sep 20, 2022 · 1 comment
Closed

About raw2alpha cuda code #36

MinJunKang opened this issue Sep 20, 2022 · 1 comment

Comments

@MinJunKang
Copy link

MinJunKang commented Sep 20, 2022

Hi, thanks for your great work. The code that calculates the alpha value from density uses this one :

alpha = 1 - (1 + exp(density + shift)) ^ (-interval)

However, I found that the original nerf uses the equation to calculate alpha from density as :

alpha = 1 - exp(-density * interval)

My question is

(1) What is the difference between those two representations?

(2) Why do we have to use a custom cuda kernel for calculating alpha instead of using torch library? I am curious about this in terms of the improvement of speed.

@MinJunKang
Copy link
Author

Sorry my bad, I should have read section 4 of the manuscript, "Density voxel grid for volume rendering". But I am still curious about the second one.

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

No branches or pull requests

1 participant