mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 19:04:03 +08:00
Improve background_color typing
This commit is contained in:
1 parent
bed684635e
commit
119519d0c3
1 file changed
+4
-2
@@ -107,7 +107,9 @@ class RGBRenderer(nn.Module):
|
||||
return comp_rgb
|
||||
|
||||
@classmethod
|
||||
def get_background_color(cls, rgb: Float[Tensor, "*bs num_samples 3"], background_color: BackgroundColor) -> Tensor:
|
||||
def get_background_color(
|
||||
cls, rgb: Float[Tensor, "*bs num_samples 3"], background_color: BackgroundColor
|
||||
) -> Float[Tensor, "3"]:
|
||||
"""Returns the RGB background color for a specified background color.
|
||||
|
||||
Args:
|
||||
@@ -133,7 +135,7 @@ class RGBRenderer(nn.Module):
|
||||
cls,
|
||||
rgb: Tensor,
|
||||
opacity: Tensor,
|
||||
background_color: Tensor,
|
||||
background_color: Float[Tensor, "3"],
|
||||
) -> Float[Tensor, "*bs 3"]:
|
||||
"""Blends the background color into the image.
|
||||
|
||||
|
||||
Reference in new issue
Block a user