TY424 / AbsGS

Other
137 stars 4 forks source link

How to calculate Homodirectional Gradient #2

Closed Dawn11041107 closed 6 months ago

Dawn11041107 commented 6 months ago

Hello, can I ask whether you use codes from scene/gaussian_model.py to compute the "positional gradient" and the "absolute value of each component (x, y)" respectively? If yes, can you explain how it works? The previous line(3D-GS) returns[update_filter, :2], which means it's calculating the values in the x and y directions. But why does [update_filter, 2:](AbsGS) return the elements starting from index 2, and those become the absolute values?

TY424 commented 6 months ago

Hi, the gradient of mean2D is saved in screenspace_points , and the gradient computation procedure is shown in code backword.cu.

Dawn11041107 commented 6 months ago

Hi, the gradient of mean2D is saved in screenspace_points , and the gradient computation procedure is shown in code backword.cu.

Ah, I get it. Thank you SO much!(非常感谢你的回复^^!!