Remove redundant data (#103)

RaySamples contained fields for bin_starts and bin_ends. These are also stored in the frustums. This PR removes them from the RaySamples.
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-07-07 18:07:34 -07:00
1 parent be45d5c9bb
commit 74280110ce
12 files changed
+145682 -145693

No files matched your search

+3 -3
View File
@@ -337,9 +337,9 @@ class PDFSampler(Sampler):
# Force bins to not have a gap between them. Kinda hacky, should reconsider.
existing_bins = torch.cat(
[
ray_samples.bin_starts[..., :1, 0],
(ray_samples.bin_starts[..., 1:, 0] + ray_samples.bin_ends[..., :-1, 0]) / 2.0,
ray_samples.bin_ends[..., -1:, 0],
ray_samples.frustums.starts[..., :1, 0],
(ray_samples.frustums.starts[..., 1:, 0] + ray_samples.frustums.ends[..., :-1, 0]) / 2.0,
ray_samples.frustums.ends[..., -1:, 0],
],
axis=-1,
)