mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
Fix typing error for blend_background
This commit is contained in:
1 parent
220ef3a459
commit
9229b1f23b
1 file changed
+1
-1
@@ -143,7 +143,7 @@ class RGBRenderer(nn.Module):
|
|||||||
def blend_background(
|
def blend_background(
|
||||||
self,
|
self,
|
||||||
image: Tensor,
|
image: Tensor,
|
||||||
background_color: Optional[Float[Tensor, "3"]] = None,
|
background_color: Optional[BackgroundColor] = None,
|
||||||
) -> Float[Tensor, "*bs 3"]:
|
) -> Float[Tensor, "*bs 3"]:
|
||||||
"""Blends the background color into the image if image is RGBA.
|
"""Blends the background color into the image if image is RGBA.
|
||||||
Otherwise no blending is performed (we assume opacity of 1).
|
Otherwise no blending is performed (we assume opacity of 1).
|
||||||
|
|||||||
Reference in new issue
Block a user