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

Negative densities #24

Closed
jason5306 opened this issue Jan 3, 2025 · 2 comments
Closed

Negative densities #24

jason5306 opened this issue Jan 3, 2025 · 2 comments

Comments

@jason5306
Copy link

Hi Ruyi,
I wonder if r2 gaussian output negative densities, for example the to-be-reconstructed volume has negative intensities. In such case, does that mean I need to normalize the volume to [0,1]?

Thank you!

@Ruyi-Zha
Copy link
Owner

Ruyi-Zha commented Jan 4, 2025

Hi, to support negative intensities, you may need to edit certain lines in the CUDA forward and backward functions. For instance, you could start by commenting out this line and similar ones in other functions.

Additionally, consider modifying the density_activation function, as it currently uses softplus—which only outputs values in the range of [0,+inf].

self.density_activation = torch.nn.Softplus() # use softplus for [0, +inf]

@jason5306
Copy link
Author

Thanks a lot, I'll try if it work. Thank you!

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

2 participants