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

Support exporting point clouds #924

Merged
merged 4 commits into from
Nov 9, 2022
Merged

Support exporting point clouds #924

merged 4 commits into from
Nov 9, 2022

Conversation

tancik
Copy link
Contributor

@tancik tancik commented Nov 9, 2022

Pointclouds can now be exported from a trained nerf.

ns-export pointcloud --load-config CONFIG --output-dir DIR

Copy link
Collaborator

@ethanweber ethanweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a few comments.


def generate_point_cloud(
pipeline: Pipeline,
num_points: int = 1000000,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1e6

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1e6 is a float, not an int. I can add the typecast, but at that point it seems a bit excessive.

nerfstudio/model_components/exporters.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
class ExportPointCloud(Exporter):
"""Class to export meshes with the poisson algorithm."""

num_points: int = 1000000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1e6

@tancik tancik merged commit 8d3640c into main Nov 9, 2022
@tancik tancik deleted the tancik/pointcloud_export branch November 9, 2022 06:23
chris838 pushed a commit to chris838/nerfstudio that referenced this pull request Apr 22, 2023
* Support exporting point clouds

* Fix typing

* lint

* Update requirements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants