pub trait Gaussian3dRenderer<B: Backend>:
'static
+ Send
+ Sized
+ Debug {
// Required methods
fn render_forward(
input: RenderInput<B>,
view: &View,
options: &Gaussian3dRenderOptions,
) -> Result<RenderOutput<B>, Error>;
fn render_backward(
state: RenderInput<B>,
colors_rgb_2d_grad: B::FloatTensorPrimitive,
) -> RenderOutput<B>;
}
Expand description
3DGS scene renderer.
Required Methods§
sourcefn render_forward(
input: RenderInput<B>,
view: &View,
options: &Gaussian3dRenderOptions,
) -> Result<RenderOutput<B>, Error>
fn render_forward( input: RenderInput<B>, view: &View, options: &Gaussian3dRenderOptions, ) -> Result<RenderOutput<B>, Error>
Render the 3DGS scene (forward).
sourcefn render_backward(
state: RenderInput<B>,
colors_rgb_2d_grad: B::FloatTensorPrimitive,
) -> RenderOutput<B>
fn render_backward( state: RenderInput<B>, colors_rgb_2d_grad: B::FloatTensorPrimitive, ) -> RenderOutput<B>
Render the 3DGS scene (backward).
It computes the gradients from the output in forward pass.
Object Safety§
This trait is not object safe.