mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-22 23:55:36 +08:00
Ray bundle latents add (#292)
* Making TensorDataclass reshape nested dict attributes.
This commit is contained in:
1 parent
56113e6c75
commit
c033d1136e
4 files changed
+139
-35
No files matched your search
@@ -81,6 +81,7 @@ class Field(nn.Module):
|
||||
if valid_mask is not None:
|
||||
# Hacky handling of empty masks. Tests on a single ray but doesn't use results
|
||||
if not valid_mask.any():
|
||||
# TODO: Can we just throw an exception here? If not we need to update this to include some fake metadata
|
||||
ray_samples = RaySamples(frustums=Frustums.get_mock_frustum().to(valid_mask.device))
|
||||
else:
|
||||
ray_samples = ray_samples.apply_masks()
|
||||
|
||||
Reference in new issue
Block a user