Skip to content

Commit

Permalink
Minor fix in sigma_thresh depth map logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyu committed Dec 15, 2021
1 parent 5c9a820 commit c13ba8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opt/opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ def eval_step():
mse_img, global_step=gstep_id_base, dataformats='HWC')
if args.log_depth_map:
depth_img = grid.volume_render_depth_image(cam,
15.0 if args.log_depth_map_use_thresh else None
args.log_depth_map_use_thresh if
args.log_depth_map_use_thresh else None
)
depth_img = viridis_cmap(depth_img.cpu())
summary_writer.add_image(f'test/depth_map_{img_id:04d}',
Expand Down

0 comments on commit c13ba8c

Please sign in to comment.