INNER CODE UNIT · Python

render

muskie82/MonoGS · gaussian_splatting/gaussian_renderer/__init__.py:24

def render(
    viewpoint_camera,
    pc: GaussianModel,
    pipe,
    bg_color: torch.Tensor,
    scaling_modifier=1.0,
    override_color=None,
    mask=None,
):
    """
    Render the scene.

    Background tensor (bg_color) must be on GPU!
    """

    # Create zero tensor. We will use it to make pytorch return gradients of the 2D (screen-space) means
    if pc.get_xyz.shape[0] == 0:
        return None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…