mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 22:25:44 +08:00
misc viewer fixes including when no samples in a chunk (#491)
viewer fixes
This commit is contained in:
1 parent
a43776d76d
commit
35c8d7e53c
4 files changed
+12
-2
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user