mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 07:18:57 +08:00
Typecheck workspace (#231)
This commit is contained in:
1 parent
db9d83093a
commit
6c45f72c57
19 files changed
+151
-90
No files matched your search
@@ -159,6 +159,7 @@ class RayBundle(TensorDataclass):
|
||||
nears: Distance along ray to start sampling
|
||||
fars: Rays Distance along ray to stop sampling
|
||||
valid_mask: Rays that are valid
|
||||
num_rays_per_chunk: Number of rays per chunk
|
||||
"""
|
||||
|
||||
origins: TensorType["num_rays", 3]
|
||||
@@ -168,7 +169,7 @@ class RayBundle(TensorDataclass):
|
||||
nears: Optional[TensorType["num_rays", 1]] = None
|
||||
fars: Optional[TensorType["num_rays", 1]] = None
|
||||
valid_mask: Optional[TensorType["num_rays", 1, bool]] = None
|
||||
num_rays_per_chunk: Optional[int] = None
|
||||
num_rays_per_chunk: int = 128
|
||||
|
||||
def set_camera_indices(self, camera_index: int) -> None:
|
||||
"""Sets all of the the camera indices to a specific camera index.
|
||||
|
||||
Reference in new issue
Block a user