mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 12:00:02 +08:00
Stricter typing, update docstrings (#226)
This commit is contained in:
1 parent
395b03f48c
commit
44a7fa288c
10 files changed
+181
-181
No files matched your search
@@ -27,13 +27,15 @@ from nerfactory.utils.math import Gaussians
|
||||
class SpatialDistortion(nn.Module):
|
||||
"""Apply spatial distortions"""
|
||||
|
||||
def forward(self, positions: Union[TensorType[..., 3], Gaussians]) -> Union[TensorType[..., 3], Gaussians]:
|
||||
def forward(
|
||||
self, positions: Union[TensorType["bs":..., 3], Gaussians]
|
||||
) -> Union[TensorType["bs":..., 3], Gaussians]:
|
||||
"""
|
||||
Args:
|
||||
positions (Union[TensorType[..., 3], Gaussians]): Sample to distort
|
||||
positions: Sample to distort
|
||||
|
||||
Returns:
|
||||
Union[TensorType[..., 3], Gaussians]: distorted sample
|
||||
Union: distorted sample
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user