Skip to content

Commit

Permalink
update None check for ray_directions_ablation
Browse files Browse the repository at this point in the history
replace it with `torch.is_tensor`
  • Loading branch information
seriousran authored Sep 14, 2022
1 parent 951c177 commit 18e83b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nerface_code/nerf-pytorch/nerf/train_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ def run_one_iter_of_nerf(
latent_code = None,
ray_directions_ablation = None
):
is_rad = False
if ray_directions_ablation:
is_rad = True
is_rad = torch.is_tensor(ray_directions_ablation)
viewdirs = None
if options.nerf.use_viewdirs:
# Provide ray directions as input
Expand Down

0 comments on commit 18e83b2

Please sign in to comment.