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

paritial derivative of L with respect to mean2D in backward.cu #1160

Open
Xusj0w0 opened this issue Feb 11, 2025 · 1 comment
Open

paritial derivative of L with respect to mean2D in backward.cu #1160

Xusj0w0 opened this issue Feb 11, 2025 · 1 comment

Comments

@Xusj0w0
Copy link

Xusj0w0 commented Feb 11, 2025

I would like to ask about the computation of the partial derivative of the loss function L with respect to mean2D in backward.cu. There is an additional factor of 0.5W(ddelx_dx)in the computation.

atomicAdd(&dL_dmean2D[global_id].x, dL_dG * dG_ddelx * ddelx_dx);
atomicAdd(&dL_dmean2D[global_id].y, dL_dG * dG_ddely * ddely_dy);

I assume that if the quadratic form of the ellipse were computed in the NDC coordinate system, then multiplying by 0.5W would be reasonable. However, the computation above is performed in pixel coordinates, which confuses me.

@Wang-Chbo
Copy link

The calculation is the derivative of Loss w.r.t pixel coordinates

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