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

Clarification Needed on Code Questions #122

Open
AutoSenseTech opened this issue Jul 5, 2024 · 1 comment
Open

Clarification Needed on Code Questions #122

AutoSenseTech opened this issue Jul 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@AutoSenseTech
Copy link

WechatIMG4500 I have a question about the code:
  1. Regarding the Gaussian scale, why is the Gaussian scale set to depth/fx? What is the basis for this approach?
  2. The parameter mean_sq_dist_method is set to 'projective'. What is the purpose of using 'projective'?
  3. What is the function of variables['means2D'] in the code? Aren't we passing 3D coordinates for rendering? Why do we need to calculate the gradient of means2D?"

Let me know if you need further assistance or explanations.

@Nik-V9
Copy link
Contributor

Nik-V9 commented Aug 29, 2024

Hi, the original 3DGS initializes the size of the Gaussians by using the 3D chamfer distance between points (which can be slow). Essentially, this initialization aims to make Gaussians near the camera smaller and make them larger as you move farther away from the camera.

Another fast and correct way of doing this is to use projective geometry, where the scale/size of Gaussian can be obtained by using the point's depth and the camera's focal length.

The means2D param computes the Gaussian's movement in the image space, which is then used to determine whether the Gaussian should be further split in the densification scheme. This is a parameter from the original 3D Gaussian Splatting.

def densify(params, variables, optimizer, iter, densify_dict):

@Nik-V9 Nik-V9 added the question Further information is requested label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants