misc viewer fixes including when no samples in a chunk (#491)

viewer fixes
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-19 18:36:26 -07:00
1 parent a43776d76d
commit 35c8d7e53c
4 files changed
+12 -2

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ from nerfactory.fields.modules.field_heads import FieldHeadNames
class Field(nn.Module):
"""Base class for fields."""
def density_fn(self, positions: TensorType["bs":..., 3]):
def density_fn(self, positions: TensorType["bs":..., 3]) -> TensorType["bs":..., 1]:
"""Returns only the density. Used primarily with the density grid.
Args: