Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruilong Li committed Nov 29, 2023
1 parent ad98221 commit cd72f97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nerfacc/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ def distortion(
ray_indices: Tensor,
n_rays: int,
) -> Tensor:
"""Distortion Regularization proposed in Mip-NeRF 360 (on a single GPU).
"""Distortion Regularization proposed in Mip-NeRF 360.
Args:
weights: [n_samples,] The weights of the samples.
t_starts: [n_samples,] The start points of the samples.
t_ends: [n_samples,] The end points of the samples.
ray_indices: [n_samples,] The ray indices of the samples.
weights: The flattened weights of the samples. Shape (n_samples,)
t_starts: The start points of the samples. Shape (n_samples,)
t_ends: The end points of the samples. Shape (n_samples,)
ray_indices: The ray indices of the samples. LongTensor with shape (n_samples,)
n_rays: The total number of rays.
Returns:
The per-ray distortion loss with the shape of [n_rays, 1].
The per-ray distortion loss with the shape (n_rays, 1).
"""
assert (
weights.shape == t_starts.shape == t_ends.shape == ray_indices.shape
Expand Down

0 comments on commit cd72f97

Please sign in to comment.