hjr37 / diff-gaussian-rasterization

diff-gaussian-rasterization module in CG-SLAM
Apache License 2.0
41 stars 0 forks source link

Attributes in render function are not defined #2

Open maurock opened 5 months ago

maurock commented 5 months ago

Hi, thanks again for open-sourcing this rasterizer. The README file mentions that the rasterizer should be called using: render(..., viewmatrix=w2cT, fov=(self.half_tanfovx, self.half_tanfovy), HW=(self.H, self.W), ...). However, the render() function is not implemented in this submodule, as it is likely implemented in the gaussian-splatting repository linked to this rasterizer. The GaussianRasterizationSettings class requires the following:

    image_height: int
    image_width: int 
    tanfovx : float
    tanfovy : float
    bg : torch.Tensor
    scale_modifier : float
    viewmatrix : torch.Tensor
    projmatrix : torch.Tensor
    sh_degree : int
    campos : torch.Tensor
    prefiltered : bool
    debug : bool
    perspec_matrix : torch.Tensor
    track_off : bool
    map_off : bool

I have two questions:

nnanhuang commented 5 months ago

same question, have you figure it out?

hjr37 commented 3 months ago

Thank you for your attention, ‘perspec_matrix’ in render(),is 'projection_matrix.T' in the original 3DGS.