Stricter typing, update docstrings (#226)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-07-28 11:36:43 -07:00
1 parent 395b03f48c
commit 44a7fa288c
10 files changed
+181 -181

No files matched your search

+3 -4
View File
@@ -27,9 +27,8 @@ class RayGenerator(nn.Module):
This class will store the intrinsics and extrinsics parameters of the cameras.
Args:
intrinsics (TensorType["num_cameras", "num_intrinsics_params"]):
The intrinsics parameters.
camera_to_world (TensorType["num_cameras", 3, 4]): Camera to world transformation matrix.
intrinsics: The intrinsics parameters.
camera_to_world: Camera to world transformation matrix.
"""
def __init__(
@@ -54,7 +53,7 @@ class RayGenerator(nn.Module):
"""Index into the cameras to generate the rays.
Args:
ray_indices (TensorType["num_rays", 3]): Contains camera, row, and col indicies for target rays.
ray_indices: Contains camera, row, and col indicies for target rays.
"""
c = ray_indices[:, 0] # camera indices
y = ray_indices[:, 1] # row indices