mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Fixing Assertion issues when exporting NeRFs to poisson meshes and pointclouds (#3587)
fixing assertion issues for a successful poissonMesh and pointcloud export
This commit is contained in:
1 parent
4a3e3e6403
commit
f604fd960e
1 file changed
+6
-4
@@ -141,8 +141,9 @@ class ExportPointCloud(Exporter):
|
||||
pipeline.datamanager,
|
||||
(VanillaDataManager, ParallelDataManager),
|
||||
)
|
||||
assert pipeline.datamanager.train_pixel_sampler is not None
|
||||
pipeline.datamanager.train_pixel_sampler.num_rays_per_batch = self.num_rays_per_batch
|
||||
if isinstance(pipeline.datamanager, VanillaDataManager):
|
||||
assert pipeline.datamanager.train_pixel_sampler is not None
|
||||
pipeline.datamanager.train_pixel_sampler.num_rays_per_batch = self.num_rays_per_batch
|
||||
|
||||
# Whether the normals should be estimated based on the point cloud.
|
||||
estimate_normals = self.normal_method == "open3d"
|
||||
@@ -329,8 +330,9 @@ class ExportPoissonMesh(Exporter):
|
||||
pipeline.datamanager,
|
||||
(VanillaDataManager, ParallelDataManager),
|
||||
)
|
||||
assert pipeline.datamanager.train_pixel_sampler is not None
|
||||
pipeline.datamanager.train_pixel_sampler.num_rays_per_batch = self.num_rays_per_batch
|
||||
if isinstance(pipeline.datamanager, VanillaDataManager):
|
||||
assert pipeline.datamanager.train_pixel_sampler is not None
|
||||
pipeline.datamanager.train_pixel_sampler.num_rays_per_batch = self.num_rays_per_batch
|
||||
|
||||
# Whether the normals should be estimated based on the point cloud.
|
||||
estimate_normals = self.normal_method == "open3d"
|
||||
|
||||
Reference in new issue
Block a user