Skip to content

Commit

Permalink
bugfix github.com/google/hypernerf/issues/24
Browse files Browse the repository at this point in the history
  • Loading branch information
treder authored Apr 15, 2022
1 parent 6cae814 commit e97b0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerfies/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def volumetric_rendering(rgb,
last_sample_z = 1e10 if sample_at_infinity else 1e-19
dists = jnp.concatenate([
z_vals[..., 1:] - z_vals[..., :-1],
jnp.broadcast_to([last_sample_z], z_vals[..., :1].shape)
jnp.broadcast_to(jnp.array([last_sample_z]), z_vals[..., :1].shape)
], -1)
dists = dists * jnp.linalg.norm(dirs[..., None, :], axis=-1)
alpha = 1.0 - jnp.exp(-sigma * dists)
Expand Down

0 comments on commit e97b0e2

Please sign in to comment.