MCPcopy Create free account
hub / github.com/apple/ml-sharp / __init__

Method __init__

src/sharp/utils/gsplat.py:54–70  ·  view source on GitHub ↗

Initialize gsplat renderer. Args: color_space: The color space to use for rendering. background_color: The background color to use for rendering. low_pass_filter_eps: The epsilon value for the low pass filter.

(
        self,
        color_space: cs_utils.ColorSpace = "sRGB",
        background_color: BackgroundColor = "black",
        low_pass_filter_eps: float = 0.0,
    )

Source from the content-addressed store, hash-verified

52 background_color: BackgroundColor
53
54 def __init__(
55 self,
56 color_space: cs_utils.ColorSpace = "sRGB",
57 background_color: BackgroundColor = "black",
58 low_pass_filter_eps: float = 0.0,
59 ) -> None:
60 """Initialize gsplat renderer.
61
62 Args:
63 color_space: The color space to use for rendering.
64 background_color: The background color to use for rendering.
65 low_pass_filter_eps: The epsilon value for the low pass filter.
66 """
67 super().__init__()
68 self.color_space = color_space
69 self.background_color = background_color
70 self.low_pass_filter_eps = low_pass_filter_eps
71
72 def forward(
73 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected