Skip to content

Commit

Permalink
Add option to change .ply output filename for Gaussian exports (#3467)
Browse files Browse the repository at this point in the history
Add option to configure .ply output filename for Gaussian exports
  • Loading branch information
brentyi authored Oct 9, 2024
1 parent 8e27e5f commit 67be060
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nerfstudio/scripts/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ class ExportGaussianSplat(Exporter):
Export 3D Gaussian Splatting model to a .ply
"""

output_filename: str = "splat.ply"
"""Name of the output file."""
obb_center: Optional[Tuple[float, float, float]] = None
"""Center of the oriented bounding box."""
obb_rotation: Optional[Tuple[float, float, float]] = None
Expand Down Expand Up @@ -565,7 +567,7 @@ def main(self) -> None:

model: SplatfactoModel = pipeline.model

filename = self.output_dir / "splat.ply"
filename = self.output_dir / self.output_filename

map_to_tensors = OrderedDict()

Expand Down

0 comments on commit 67be060

Please sign in to comment.