Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nerfacc
Commits
1bcf42f1
Unverified
Commit
1bcf42f1
authored
Sep 20, 2022
by
Matthew Tancik
Committed by
GitHub
Sep 20, 2022
Browse files
Fix typos (#27)
parent
01e12848
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
nerfacc/occupancy_field.py
nerfacc/occupancy_field.py
+2
-2
nerfacc/utils.py
nerfacc/utils.py
+3
-3
nerfacc/volumetric_rendering.py
nerfacc/volumetric_rendering.py
+1
-1
No files found.
nerfacc/occupancy_field.py
View file @
1bcf42f1
...
@@ -48,7 +48,7 @@ class OccupancyField(nn.Module):
...
@@ -48,7 +48,7 @@ class OccupancyField(nn.Module):
aabb: Scene bounding box. If ``num_dim=2`` it should be {min_x, min_y,max_x, max_y}.
aabb: Scene bounding box. If ``num_dim=2`` it should be {min_x, min_y,max_x, max_y}.
If ``num_dim=3`` it should be {min_x, min_y, min_z, max_x, max_y, max_z}.
If ``num_dim=3`` it should be {min_x, min_y, min_z, max_x, max_y, max_z}.
resolution: The field resolution. It can either be a int of a list of ints
resolution: The field resolution. It can either be a int of a list of ints
to specify resolution on each dimen
t
ion. If ``num_dim=2`` it is for {res_x, res_y}.
to specify resolution on each dimen
s
ion. If ``num_dim=2`` it is for {res_x, res_y}.
If ``num_dim=3`` it is for {res_x, res_y, res_z}. Default is 128.
If ``num_dim=3`` it is for {res_x, res_y, res_z}. Default is 128.
num_dim: The space dimension. Either 2 or 3. Default is 3.
num_dim: The space dimension. Either 2 or 3. Default is 3.
...
@@ -216,7 +216,7 @@ class OccupancyField(nn.Module):
...
@@ -216,7 +216,7 @@ class OccupancyField(nn.Module):
occ_thre: Threshold to binarize the occupancy field.
occ_thre: Threshold to binarize the occupancy field.
ema_decay: The decay rate for EMA updates.
ema_decay: The decay rate for EMA updates.
warmup_steps: Sample all cells during the warmup stage. After the warmup
warmup_steps: Sample all cells during the warmup stage. After the warmup
stage we change the sampling strategy to 1/4 unif
r
omly sampled cells
stage we change the sampling strategy to 1/4 unifo
r
mly sampled cells
together with 1/4 occupied cells.
together with 1/4 occupied cells.
n: Update the field every n steps.
n: Update the field every n steps.
...
...
nerfacc/utils.py
View file @
1bcf42f1
...
@@ -71,7 +71,7 @@ def volumetric_marching(
...
@@ -71,7 +71,7 @@ def volumetric_marching(
Returns:
Returns:
A tuple of tensors containing
A tuple of tensors containing
- **packed_info**: Stores infomation on which samples belong to the same ray.
\
- **packed_info**: Stores info
r
mation on which samples belong to the same ray.
\
It is a tensor with shape (n_rays, 2). For each ray, the two values
\
It is a tensor with shape (n_rays, 2). For each ray, the two values
\
indicate the start index and the number of samples for this ray,
\
indicate the start index and the number of samples for this ray,
\
respectively.
respectively.
...
@@ -180,7 +180,7 @@ def volumetric_rendering_weights(
...
@@ -180,7 +180,7 @@ def volumetric_rendering_weights(
Note: this function is only differentiable to `sigmas`.
Note: this function is only differentiable to `sigmas`.
Args:
Args:
packed_info: Stores infomation on which samples belong to the same ray.
\
packed_info: Stores info
r
mation on which samples belong to the same ray.
\
See ``volumetric_marching`` for details. Tensor with shape (n_rays, 2).
See ``volumetric_marching`` for details. Tensor with shape (n_rays, 2).
sigmas: Densities at those samples. Tensor with shape (n_samples, 1).
sigmas: Densities at those samples. Tensor with shape (n_samples, 1).
frustum_starts: Where the frustum-shape sample starts along a ray. Tensor with
\
frustum_starts: Where the frustum-shape sample starts along a ray. Tensor with
\
...
@@ -265,7 +265,7 @@ def unpack_to_ray_indices(packed_info: Tensor) -> Tensor:
...
@@ -265,7 +265,7 @@ def unpack_to_ray_indices(packed_info: Tensor) -> Tensor:
Note: this function is not differentiable to inputs.
Note: this function is not differentiable to inputs.
Args:
Args:
packed_info: Stores infomation on which samples belong to the same ray.
\
packed_info: Stores info
r
mation on which samples belong to the same ray.
\
See ``volumetric_marching`` for details. Tensor with shape (n_rays, 2).
See ``volumetric_marching`` for details. Tensor with shape (n_rays, 2).
Returns:
Returns:
...
...
nerfacc/volumetric_rendering.py
View file @
1bcf42f1
...
@@ -29,7 +29,7 @@ def volumetric_rendering_pipeline(
...
@@ -29,7 +29,7 @@ def volumetric_rendering_pipeline(
This function is the integration of those individual functions:
This function is the integration of those individual functions:
- ray_aabb_intersect
- ray_aabb_intersect
- volumetric_mar
h
cing
- volumetric_marc
h
ing
- volumetric_rendering_steps
- volumetric_rendering_steps
- volumetric_rendering_weights
- volumetric_rendering_weights
- volumetric_rendering_accumulate
- volumetric_rendering_accumulate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment