nerfstudio-project / gsplat

CUDA accelerated rasterization of gaussian splatting
https://docs.gsplat.studio/
Apache License 2.0
1.65k stars 208 forks source link

output vector is all zeros of project_gaussians #257

Open lixinhaiyk opened 2 months ago

lixinhaiyk commented 2 months ago

These input values are all correct, but the output vector is all zeros.Has anyone encountered this issue before? the version is gsplat==0.1.2.1

        self.xys, self.depths, self.radii, self.conics, self.num_tiles_hit, self.cov3d__ = project_gaussians(  # type: ignore
            means_crop,
            scales_crop,
            1,
            quats_crop / quats_crop.norm(dim=-1, keepdim=True),
            viewmat.squeeze()[:3, :],
            projmat,
            camera.fx.item(),
            camera.fy.item(),
            cx,
            cy,
            H,
            W,
            #self.config.block_width,
            tile_bounds,
        )  # type: ignore
baoachun commented 2 months ago

Perhaps you can check if all the Gaussian points are within the view frustum.