mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
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:
1 parent
be45d5c9bb
commit
74280110ce
12 files changed
+145682
-145693
No files matched your search
@@ -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,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user