Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to change .ply output filename for Gaussian exports #3467

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading