Skip to content

Commit

Permalink
fix bug in #89
Browse files Browse the repository at this point in the history
  • Loading branch information
JiantengChen authored Oct 27, 2023
1 parent 2666917 commit 99e4a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsg/models/scene_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def get_outputs(self, ray_bundle: RayBundle):
# (n_rays, n_samples)

output_bg_insec_density = output_bg_density[intersection_map[..., 0]] # (n_intersects, n_samples)
mask = (bg_samples_z_vals > z_vals_in_o.unsqueeze(-1)) & (bg_samples_z_vals < z_vals_out_o.unsqueeze(-1))
mask = (bg_samples_z_vals > z_vals_in_w.unsqueeze(-1)) & (bg_samples_z_vals < z_vals_out_w.unsqueeze(-1))
output_bg_insec_density[mask] = 0.0

track_idx = obj_pose[..., 4] # (n_intersects, )
Expand Down

0 comments on commit 99e4a03

Please sign in to comment.