Skip to content

Commit

Permalink
Allow alpha transparency training for blender datasets input (nerfstu…
Browse files Browse the repository at this point in the history
…dio-project#3088)

Allow alpha transparency training for rgba input

Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
  • Loading branch information
jb-ye and kerrj authored Apr 19, 2024
1 parent eddf2d2 commit d9b022b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nerfstudio/data/dataparsers/blender_dataparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ class BlenderDataParserConfig(DataParserConfig):
"""Directory specifying location of data."""
scale_factor: float = 1.0
"""How much to scale the camera origins by."""
alpha_color: str = "white"
"""alpha color of background"""
alpha_color: Optional[str] = "white"
"""alpha color of background, when set to None, InputDataset that consumes DataparserOutputs will not attempt
to blend with alpha_colors using image's alpha channel data. Thus rgba image will be directly used in training. """
ply_path: Optional[Path] = None
"""Path to PLY file to load 3D points from, defined relative to the dataset directory. This is helpful for
Gaussian splatting and generally unused otherwise. If `None`, points are initialized randomly."""
Expand Down

0 comments on commit d9b022b

Please sign in to comment.