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
@@ -105,7 +105,7 @@ class NerfWGraph(Graph):
|
||||
ray_samples_uniform = self.sampler_uniform(ray_bundle)
|
||||
|
||||
# coarse field
|
||||
field_outputs_coarse = self.field_coarse.forward(ray_samples_uniform.to_point_samples())
|
||||
field_outputs_coarse = self.field_coarse.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],
|
||||
@@ -117,7 +117,7 @@ class NerfWGraph(Graph):
|
||||
ray_samples_pdf = self.sampler_pdf(ray_bundle, ray_samples_uniform, weights_coarse)
|
||||
|
||||
# fine field
|
||||
field_outputs_fine = self.field_fine.forward(ray_samples_pdf.to_point_samples())
|
||||
field_outputs_fine = self.field_fine.forward(ray_samples_pdf)
|
||||
|
||||
# fine weights
|
||||
weights_fine = ray_samples_pdf.get_weights(
|
||||
|
||||
Reference in new issue
Block a user