mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 05:48:57 +08:00
Add near plane to NGP sampler (#443)
This commit is contained in:
1 parent
1492f84930
commit
695d9a1777
4 files changed
+14
-7
No files matched your search
@@ -115,7 +115,9 @@ class CompoundModel(Model):
|
||||
|
||||
if self.field is None:
|
||||
raise ValueError("populate_fields() must be called before get_outputs")
|
||||
ray_samples, packed_info, t_min, t_max = self.sampler(ray_bundle, self.field.aabb)
|
||||
ray_samples, packed_info, t_min, t_max = self.sampler(
|
||||
ray_bundle, self.field.aabb, cone_angle=self.config.cone_angle, near_plane=self.config.near_plane
|
||||
)
|
||||
|
||||
field_outputs = self.field.forward(ray_samples)
|
||||
|
||||
|
||||
Reference in new issue
Block a user