mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
Remove point samples
This commit is contained in:
1 parent
191dfc6a34
commit
5a1c8a1c86
13 files changed
+85
-107
No files matched your search
@@ -98,7 +98,7 @@ class MipNerfGraph(Graph):
|
||||
ray_samples_uniform = self.sampler_uniform(ray_bundle)
|
||||
|
||||
# First pass:
|
||||
field_outputs_coarse = self.field.forward(ray_samples_uniform.to_point_samples())
|
||||
field_outputs_coarse = self.field.forward(ray_samples_uniform)
|
||||
weights_coarse = ray_samples_uniform.get_weights(field_outputs_coarse[FieldHeadNames.DENSITY])
|
||||
rgb_coarse = self.renderer_rgb(
|
||||
rgb=field_outputs_coarse[FieldHeadNames.RGB],
|
||||
@@ -111,7 +111,7 @@ class MipNerfGraph(Graph):
|
||||
ray_samples_pdf = self.sampler_pdf(ray_bundle, ray_samples_uniform, weights_coarse)
|
||||
|
||||
# Second pass:
|
||||
field_outputs_fine = self.field.forward(ray_samples_pdf.to_point_samples())
|
||||
field_outputs_fine = self.field.forward(ray_samples_pdf)
|
||||
weights_fine = ray_samples_pdf.get_weights(field_outputs_fine[FieldHeadNames.DENSITY])
|
||||
rgb_fine = self.renderer_rgb(
|
||||
rgb=field_outputs_fine[FieldHeadNames.RGB],
|
||||
|
||||
Reference in new issue
Block a user