mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 23:08:44 +08:00
Get tests passing
This commit is contained in:
1 parent
4325c86997
commit
40f0338eb2
8 files changed
+58
-174
No files matched your search
@@ -86,7 +86,7 @@ class RaySamples:
|
||||
t_mid = (self.bins[:, 1:] + self.bins[:, :-1]) / 2 # (num_rays, num_samples)
|
||||
return ray_bundle.origins[:, None] + t_mid[:, :, None] * ray_bundle.directions[:, None]
|
||||
|
||||
def get_deltas(self) -> TensorType["num_samples"]:
|
||||
def get_deltas(self) -> TensorType[..., "num_samples"]:
|
||||
"""Returns deltas."""
|
||||
deltas = self.bins[..., 1:] - self.bins[..., :-1]
|
||||
# TODO(ethan): check this with Matt
|
||||
|
||||
Reference in new issue
Block a user