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

Problem about the "distortion loss" #124

Open
Yukun66 opened this issue Mar 6, 2023 · 0 comments
Open

Problem about the "distortion loss" #124

Yukun66 opened this issue Mar 6, 2023 · 0 comments

Comments

@Yukun66
Copy link

Yukun66 commented Mar 6, 2023

Hi kwea123! I have a question about line 94 in the loss.cu code. According to the method in Improved Direct Voxel Grid Optimization for Radiance Fields Reconstruction, the forward pass of distortion loss is composed of 2 parts, for example, there are 3 points, w0, w1, w2, and m0, m1, m2. The integration is going to be:

w1w0(m1-m0) + [w2w0(m2-m0)+w2w1(m2-m1)] 
=[w1m1w0+(w2m2w0+w2m2w1)]- [w1w0m0 + (w2w0m0+w2w1m1)]
=[0 + (w1m1)w0+(w2m2)(w0+w1)]- [0+w1(w0m0) + w2(w0m0+w1m1)]
=(wts * ws_exclusive_scan- ws *wts_exclusive_scan)

But in your code, it is: (lines 94-96)

integration = (wts_inclusive_scan*ws_exclusive_scan-
                    ws_inclusive_scan*wts_exclusive_scan)

It's different from my toy example. Could you please help me out? Thx!

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