Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DveloperY0115 committed Jun 27, 2022
1 parent 257a634 commit e101029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_nerf/runners/runner_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ def visualize_scene(
)

# (H * W, C) -> (C, H, W)
pixel_pred = pixel_pred.reshape(img_height, dataset.img_width, -1)
pixel_pred = pixel_pred.reshape(img_height, img_width, -1)
pixel_pred = pixel_pred.permute(2, 0, 1)

# save the image
tvu.save_image(
pixel_pred,
os.path.join(pred_img_dir, f"{str(view_idx).zfill(5)}.png"),
os.path.join(pred_img_dir, f"{str(pose_idx).zfill(5)}.png"),
)

0 comments on commit e101029

Please sign in to comment.