Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
kwea123 committed Jan 24, 2021
1 parent 9749f78 commit 5e54f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/nerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class PosEmbedding(nn.Module):
def __init__(self, max_logscale, N_freqs, logscale=True):
"""
Defines a function that embeds x to (sin(2^k x), cos(2^k x), ...)
Defines a function that embeds x to (x, sin(2^k x), cos(2^k x), ...)
"""
super().__init__()
self.funcs = [torch.sin, torch.cos]
Expand Down Expand Up @@ -109,13 +109,13 @@ def forward(self, x, sigma_only=False, output_transient=True):
sigma_only: whether to infer sigma only.
has_transient: whether to infer the transient component.
Outputs:
Outputs (concatenated):
if sigma_ony:
static_sigma
elif output_transient:
static_rgb, static_sigma, transient_rgb, transient_sigma, transient_beta
else:
static_sigma, static_rgb
static_rgb, static_sigma
"""
if sigma_only:
input_xyz = x
Expand Down

0 comments on commit 5e54f43

Please sign in to comment.